]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
Add DP_FS_USERDIR macro consistent to DP_FS_BASEDIR.
[xonotic/darkplaces.git] / 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)