From 5209e22c7ac3a3c254e5d5e12c524e52ec2b140c Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 18 Jan 2014 11:19:45 +0000 Subject: [PATCH] Always pass CDS_FULLSCREEN to ChangeDisplaySettings, fixes #1797. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12050 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_wgl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vid_wgl.c b/vid_wgl.c index 22f71e8a..4ff183e7 100644 --- 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; } -- 2.39.2