From 5907c485a96f48f8d837ac2a80280cc3dae35a58 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 24 Nov 2015 13:33:03 +0000 Subject: [PATCH] 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 --- vid_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2