SDL 1.2 Windows: Fix other window positions/sizes when exiting fullscreen (bug #3315, thanks Simon Hug!) SDL-1.2
authorAlex Szpakowski <slime73@gmail.com>
Mon, 23 May 2016 15:27:30 -0300
branchSDL-1.2
changeset 10178 e49caa693be5
parent 10125 b1d2398f2655
SDL 1.2 Windows: Fix other window positions/sizes when exiting fullscreen (bug #3315, thanks Simon Hug!)
src/video/windib/SDL_dibvideo.c
--- a/src/video/windib/SDL_dibvideo.c	Wed Mar 30 13:30:59 2016 -0400
+++ b/src/video/windib/SDL_dibvideo.c	Mon May 23 15:27:30 2016 -0300
@@ -807,7 +807,7 @@
 	} 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 @@
 			}
 #ifndef NO_CHANGEDISPLAYSETTINGS
 			if ( this->screen->flags & SDL_FULLSCREEN ) {
-				ChangeDisplaySettings(NULL, 0);
+				ChangeDisplaySettings(NULL, CDS_FULLSCREEN);
 				ShowWindow(SDL_Window, SW_HIDE);
 			}
 #endif