[m] added SDL_Window as a parameter, to not make new window for redraw