Fix several warnings with gcc-5 and an error with mingw (where
[xonotic/darkplaces.git] / vid_sdl.c
index a6edf12..a1bef3b 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 + ((workHeight - height) / 2);
        }
 }
 #endif