Windows: Fix other window positions/sizes being changed when exiting exclusive fullscreen (bug #3315, thanks Simon Hug!)
authorAlex Szpakowski <slime73@gmail.com>
Mon, 23 May 2016 15:29:25 -0300
changeset 101797cbfd97f1430
parent 10177 faa36f2de933
child 10180 7356b2938fba
Windows: Fix other window positions/sizes being changed when exiting exclusive fullscreen (bug #3315, thanks Simon Hug!)
src/video/windows/SDL_windowsmodes.c
     1.1 --- a/src/video/windows/SDL_windowsmodes.c	Sat May 21 12:09:23 2016 -0300
     1.2 +++ b/src/video/windows/SDL_windowsmodes.c	Mon May 23 15:29:25 2016 -0300
     1.3 @@ -416,7 +416,7 @@
     1.4      LONG status;
     1.5  
     1.6      if (mode->driverdata == display->desktop_mode.driverdata) {
     1.7 -        status = ChangeDisplaySettingsEx(displaydata->DeviceName, NULL, NULL, 0, NULL);
     1.8 +        status = ChangeDisplaySettingsEx(displaydata->DeviceName, NULL, NULL, CDS_FULLSCREEN, NULL);
     1.9      } else {
    1.10          status = ChangeDisplaySettingsEx(displaydata->DeviceName, &data->DeviceMode, NULL, CDS_FULLSCREEN, NULL);
    1.11      }