From 3b1bd34cc2880f2f4c345efb853a61eaa6ae69df Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Mon, 23 May 2016 15:27:30 -0300 Subject: [PATCH] SDL 1.2 Windows: Fix other window positions/sizes when exiting fullscreen (bug #3315, thanks Simon Hug!) --- src/video/windib/SDL_dibvideo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/windib/SDL_dibvideo.c b/src/video/windib/SDL_dibvideo.c index 6187bfcf7..e096a55b0 100644 --- a/src/video/windib/SDL_dibvideo.c +++ b/src/video/windib/SDL_dibvideo.c @@ -807,7 +807,7 @@ SDL_Surface *DIB_SetVideoMode(_THIS, SDL_Surface *current, } else { #ifndef NO_CHANGEDISPLAYSETTINGS if ( (prev_flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) { - ChangeDisplaySettings(NULL, 0); + ChangeDisplaySettings(NULL, CDS_FULLSCREEN); } #endif if ( flags & SDL_NOFRAME ) { @@ -1186,7 +1186,7 @@ void DIB_VideoQuit(_THIS) } #ifndef NO_CHANGEDISPLAYSETTINGS if ( this->screen->flags & SDL_FULLSCREEN ) { - ChangeDisplaySettings(NULL, 0); + ChangeDisplaySettings(NULL, CDS_FULLSCREEN); ShowWindow(SDL_Window, SW_HIDE); } #endif