From 016e9886d4829174cf4ea67dd9683983fa070d0b Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 12 Mar 2016 15:24:01 +0000 Subject: [PATCH] Fix warning and MSVC build against SDL2. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12248 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_sdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vid_sdl.c b/vid_sdl.c index 4efd105c..22fd13eb 100644 --- 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) -- 2.39.2