]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Always pass CDS_FULLSCREEN to ChangeDisplaySettings, fixes #1797.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Jan 2014 11:19:45 +0000 (11:19 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Jan 2014 11:19:45 +0000 (11:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12050 d7cf8633-e32d-0410-b094-e92efae38249

vid_wgl.c

index 22f71e8a1368bc73dfd6c787bec48490bfb3e643..4ff183e705a08821accb5107d99744fa0f0ad7de 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -490,7 +490,7 @@ void AppActivate(BOOL fActive, BOOL minimize)
                if (vid_isfullscreen)
                {
                        if (gldll)
-                               ChangeDisplaySettings (NULL, 0);
+                               ChangeDisplaySettings (NULL, CDS_FULLSCREEN);
                        vid_wassuspended = true;
                }
                VID_RestoreSystemGamma();
@@ -1946,7 +1946,7 @@ void VID_Shutdown (void)
                DestroyWindow(mainwindow);
        mainwindow = 0;
        if (vid_isfullscreen && isgl)
-               ChangeDisplaySettings (NULL, 0);
+               ChangeDisplaySettings (NULL, CDS_FULLSCREEN);
        vid_isfullscreen = false;
 }