# HG changeset patch # User Alex Szpakowski # Date 1464028050 10800 # Node ID e49caa693be528cbd200b3868392c9d2d83c03e4 # Parent b1d2398f2655a5987e3ca1721066b7d8dfcb6957 SDL 1.2 Windows: Fix other window positions/sizes when exiting fullscreen (bug #3315, thanks Simon Hug!) diff -r b1d2398f2655 -r e49caa693be5 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