From 50c1a6fa96850f5e5d67090167c38baf43e2937d Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 20 Aug 2013 16:27:54 +0200 Subject: [PATCH] add win32 version of desktopfullscreen --- vid_wgl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; -- 2.39.2