From: Rudolf Polzer Date: Tue, 20 Aug 2013 14:27:54 +0000 (+0200) Subject: add win32 version of desktopfullscreen X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=50c1a6fa96850f5e5d67090167c38baf43e2937d;p=xonotic%2Fdarkplaces.git add win32 version of desktopfullscreen --- diff --git a/vid_wgl.c b/vid_wgl.c index f4279570..bccacc11 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -1012,7 +1012,14 @@ qboolean VID_InitModeGL(viddef_mode_t *mode) vid_isfullscreen = false; if (fullscreen) { - if(vid_forcerefreshrate.integer) + if(vid_desktopfullscreen.integer) + { + gdevmode = initialdevmode; + width = mode->width = gdevmode.dmPelsWidth; + height = mode->height = gdevmode.dmPelsHeight; + bpp = mode->bpp = gdevmode.dmBitsPerPel; + } + else if(vid_forcerefreshrate.integer) { foundmode = true; gdevmode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;