From: divverent Date: Sat, 18 Jan 2014 11:19:45 +0000 (+0000) Subject: Always pass CDS_FULLSCREEN to ChangeDisplaySettings, fixes #1797. X-Git-Tag: xonotic-v0.8.0~85 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7d52a99d821db4c1c94251aed03df93d811c10f6;p=xonotic%2Fdarkplaces.git Always pass CDS_FULLSCREEN to ChangeDisplaySettings, fixes #1797. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12050 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=5209e22c7ac3a3c254e5d5e12c524e52ec2b140c --- 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; }