aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
diff options
context:
space:
mode:
authorColin Snover2017-07-19 21:11:00 -0500
committerColin Snover2017-10-15 13:24:20 -0500
commit969dd565a135664dcf341af9132dd97b6ec357e9 (patch)
tree9fc6f4249e6d6cc5106a070f6c7470a452b19674 /backends/graphics/surfacesdl/surfacesdl-graphics.cpp
parentb53020f70457c059f5028073df493cfc25a5876a (diff)
downloadscummvm-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.cpp5
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;
}