]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix a recent typo-fix :)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 24 Nov 2015 13:33:03 +0000 (13:33 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 26 Nov 2015 14:03:21 +0000 (15:03 +0100)
This fixes the centering of the window on Windows by default.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12231 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5907c485a96f48f8d837ac2a80280cc3dae35a58

vid_sdl.c

index a1bef3b39c1149f613fad8b8b77f372454cc38ec..4efd105cec18c19f9449dc3f43fa30e9aa55a2d6 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -2453,7 +2453,7 @@ static void AdjustWindowBounds(viddef_mode_t *mode, RECT *rect)
        else 
        {
                rect->left = workArea.left + max(0, (workWidth - width) / 2);
-               rect->top = workArea.top + ((workHeight - height) / 2);
+               rect->top = workArea.top + max(0, (workHeight - height) / 2);
        }
 }
 #endif