diff options
author | Thierry Crozat | 2016-09-18 04:23:17 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-09-18 04:23:37 +0100 |
commit | 1fd4dbfdce66bc515e43c062e5b142e33391b131 (patch) | |
tree | 681e578d6d2258a2c3d83894b413cb0ad9788d89 /backends/modular-backend.cpp | |
parent | 1f541a700595e6ecc600ccf11005f7e62b47504b (diff) | |
download | scummvm-rg350-1fd4dbfdce66bc515e43c062e5b142e33391b131.tar.gz scummvm-rg350-1fd4dbfdce66bc515e43c062e5b142e33391b131.tar.bz2 scummvm-rg350-1fd4dbfdce66bc515e43c062e5b142e33391b131.zip |
SDL: Ignore outdated SDL resize event in OpenGL mode
Those outdated resize events are sent from SDL_DestroyWindow when the
window is fullscreen and doesn't have the SDL_WINDOW_FULLSCREEN_DESKTOP
flag (thus Surface SDL is not affected). Switching resolutions in fullscreen, or
switching from fullscreen to windowed will therefore cause a resize event to
be received with the former fullscreen resolution after we have already setup
the window to use the new resolution. If we don't ignore this event we end up
with a texture size and a window size that are not consistent and for example
see only a part of the texture (if the old resolution is bigger than the new one.
Diffstat (limited to 'backends/modular-backend.cpp')
0 files changed, 0 insertions, 0 deletions