Closed ankith26 closed 1 month ago
is this really how we want to to things? I added this behaviour to pygame.display as a hack to keep backward compat with pygame 1.9, which required a call to set_mode after a VIDEORESIZE event.
There is absolutely no behaviour change happening here. All it does is add an extra call to SDL_GetWindowSurface
that runs before the one in the event watch runs (and when that runs again, there is no harm there)
Did you mean to comment this on another issue?
Reverts the hacky test fix applied in https://github.com/pygame-community/pygame-ce/pull/2832 that didn't work out
This new approach essentially forces the update via
SDL_GetWindowSurface
to happen immediately, so we are now ensuring that the window surface is updated before we even leave the function call.