X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=vid_sdl.c;h=4efd105cec18c19f9449dc3f43fa30e9aa55a2d6;hb=8367a30715017e7a497f6baf65dbaff5f72d6cf3;hp=a6edf127d361e7231e7cdca5a360cfcf5b9f3df7;hpb=d38b46c83edc12710082d43ae303a4bbbd2d9486;p=xonotic%2Fdarkplaces.git diff --git a/vid_sdl.c b/vid_sdl.c index a6edf127..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 + (0, (workHeight - height) / 2); + rect->top = workArea.top + max(0, (workHeight - height) / 2); } } #endif