diff options
author | Colin Snover | 2017-07-19 21:11:00 -0500 |
---|---|---|
committer | Colin Snover | 2017-10-15 13:24:20 -0500 |
commit | 969dd565a135664dcf341af9132dd97b6ec357e9 (patch) | |
tree | 9fc6f4249e6d6cc5106a070f6c7470a452b19674 /backends/graphics/surfacesdl/surfacesdl-graphics.cpp | |
parent | b53020f70457c059f5028073df493cfc25a5876a (diff) | |
download | scummvm-rg350-969dd565a135664dcf341af9132dd97b6ec357e9.tar.gz scummvm-rg350-969dd565a135664dcf341af9132dd97b6ec357e9.tar.bz2 scummvm-rg350-969dd565a135664dcf341af9132dd97b6ec357e9.zip |
SDL: Allow window resize with non-OpenGL SDL2 backend
The GUI is not redrawn when the window size changes, but that is
not as important as being able to resize the games themselves.
Diffstat (limited to 'backends/graphics/surfacesdl/surfacesdl-graphics.cpp')
-rw-r--r-- | backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index 9d0f217184..fb9870910b 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -2792,10 +2792,7 @@ void SurfaceSdlGraphicsManager::recreateScreenTexture() { SDL_Surface *SurfaceSdlGraphicsManager::SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags) { deinitializeRenderer(); - uint32 createWindowFlags = 0; -#ifdef USE_SDL_RESIZABLE_WINDOW - createWindowFlags |= SDL_WINDOW_RESIZABLE; -#endif + uint32 createWindowFlags = SDL_WINDOW_RESIZABLE; if ((flags & SDL_FULLSCREEN) != 0) { createWindowFlags |= SDL_WINDOW_FULLSCREEN_DESKTOP; } |