]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
If vid_desktopfullscreen is set, manually initialize window with the current desktop...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Oct 2014 20:20:22 +0000 (20:20 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Oct 2014 20:20:22 +0000 (20:20 +0000)
Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12098 d7cf8633-e32d-0410-b094-e92efae38249

vid_sdl.c

index ba5a6fd7662caa2fd90bd3fc4b40a8c6b6394eb1..4637f47df58dfaacd65bb92231231fba81eed3b7 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -2506,7 +2506,12 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode)
        {
                if (mode->fullscreen) {
                        if (vid_desktopfullscreen.integer)
+                       {
+                               vid_mode_t *m = VID_GetDesktopMode();
+                               mode->width = m->width;
+                               mode->height = m->height;
                                windowflags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
+                       }
                        else
                                windowflags |= SDL_WINDOW_FULLSCREEN;
                        vid_isfullscreen = true;