]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix warning and MSVC build against SDL2.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 12 Mar 2016 15:24:01 +0000 (15:24 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 12 Mar 2016 15:24:01 +0000 (15:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12248 d7cf8633-e32d-0410-b094-e92efae38249

vid_sdl.c

index 4efd105cec18c19f9449dc3f43fa30e9aa55a2d6..22fd13ebf975fa3a74145711e7b3a9095b415e41 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -2465,6 +2465,8 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode)
        int flags = SDL_OPENGL;
 #else
        int windowflags = SDL_WINDOW_SHOWN | SDL_WINDOW_OPENGL;
+       int xPos = SDL_WINDOWPOS_UNDEFINED;
+       int yPos = SDL_WINDOWPOS_UNDEFINED;
 #endif
 #ifndef USE_GLES2
        int i;
@@ -2547,8 +2549,6 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode)
                }
        }
 #else
-       int xPos = SDL_WINDOWPOS_UNDEFINED;
-       int yPos = SDL_WINDOWPOS_UNDEFINED;
        {
                if (mode->fullscreen) {
                        if (vid_desktopfullscreen.integer)