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 10179 7cbfd97f1430
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
--- a/src/video/windows/SDL_windowsmodes.c	Sat May 21 12:09:23 2016 -0300
+++ b/src/video/windows/SDL_windowsmodes.c	Mon May 23 15:29:25 2016 -0300
@@ -416,7 +416,7 @@
     LONG status;
 
     if (mode->driverdata == display->desktop_mode.driverdata) {
-        status = ChangeDisplaySettingsEx(displaydata->DeviceName, NULL, NULL, 0, NULL);
+        status = ChangeDisplaySettingsEx(displaydata->DeviceName, NULL, NULL, CDS_FULLSCREEN, NULL);
     } else {
         status = ChangeDisplaySettingsEx(displaydata->DeviceName, &data->DeviceMode, NULL, CDS_FULLSCREEN, NULL);
     }