SDL 1.2 Windows: Fix other window positions/sizes when exiting fullscreen (bug #3315, thanks Simon Hug!) SDL-1.2
authorAlex Szpakowski
Mon, 23 May 2016 15:27:30 -0300
branchSDL-1.2
changeset 10178e49caa693be5
parent 10133 b1d2398f2655
child 10313 0c1a8b0429a9
SDL 1.2 Windows: Fix other window positions/sizes when exiting fullscreen (bug #3315, thanks Simon Hug!)
src/video/windib/SDL_dibvideo.c
     1.1 --- a/src/video/windib/SDL_dibvideo.c	Wed Mar 30 13:30:59 2016 -0400
     1.2 +++ b/src/video/windib/SDL_dibvideo.c	Mon May 23 15:27:30 2016 -0300
     1.3 @@ -807,7 +807,7 @@
     1.4  	} else {
     1.5  #ifndef NO_CHANGEDISPLAYSETTINGS
     1.6  		if ( (prev_flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
     1.7 -			ChangeDisplaySettings(NULL, 0);
     1.8 +			ChangeDisplaySettings(NULL, CDS_FULLSCREEN);
     1.9  		}
    1.10  #endif
    1.11  		if ( flags & SDL_NOFRAME ) {
    1.12 @@ -1186,7 +1186,7 @@
    1.13  			}
    1.14  #ifndef NO_CHANGEDISPLAYSETTINGS
    1.15  			if ( this->screen->flags & SDL_FULLSCREEN ) {
    1.16 -				ChangeDisplaySettings(NULL, 0);
    1.17 +				ChangeDisplaySettings(NULL, CDS_FULLSCREEN);
    1.18  				ShowWindow(SDL_Window, SW_HIDE);
    1.19  			}
    1.20  #endif