]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
Make the number of frames used for initial settling configurable.
[xonotic/darkplaces.git] / vid_sdl.c
index a6edf127d361e7231e7cdca5a360cfcf5b9f3df7..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 + (0, (workHeight - height) / 2);
+               rect->top = workArea.top + max(0, (workHeight - height) / 2);
        }
 }
 #endif