]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
Fix several warnings with gcc-5 and an error with mingw (where
[xonotic/darkplaces.git] / vid_sdl.c
index 03af6eaf0bf2e5e8a19dd269f21111a95bc13ce8..a1bef3b39c1149f613fad8b8b77f372454cc38ec 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -87,7 +87,7 @@ static int video_bpp;
 static SDL_Surface *screen;
 static int video_flags;
 #else
-static SDL_GLContext *context;
+static SDL_GLContext context;
 static SDL_Window *window;
 static int window_flags;
 #endif
@@ -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