From: divverent Date: Tue, 24 Nov 2015 13:33:03 +0000 (+0000) Subject: Fix a recent typo-fix :) X-Git-Tag: xonotic-v0.8.2~67 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1f633d367f4fe9fcc203597e66446c431080c96b;p=xonotic%2Fdarkplaces.git Fix a recent typo-fix :) 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 --- diff --git a/vid_sdl.c b/vid_sdl.c index a1bef3b3..4efd105c 100644 --- 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