]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
add win32 version of desktopfullscreen
authorRudolf Polzer <divverent@xonotic.org>
Tue, 20 Aug 2013 14:27:54 +0000 (16:27 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 20 Aug 2013 14:27:54 +0000 (16:27 +0200)
vid_wgl.c

index f427957024fdf9bb50735e2f58dbf4836867ac81..bccacc1100eace7f79a808501631e4a9cfd7887c 100644 (file)
--- 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;