X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=vid_sdl.c;h=03af6eaf0bf2e5e8a19dd269f21111a95bc13ce8;hb=f56e47c2febca63f8bdd3356e3a2574417973282;hp=e3c934a7adac167d2e208bc99650f645e43f38d5;hpb=a1fd1fce6da4c9bc532bb724b2eaaa754bbc3c21;p=xonotic%2Fdarkplaces.git diff --git a/vid_sdl.c b/vid_sdl.c index e3c934a7..03af6eaf 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -2527,8 +2527,6 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode) // Knghtbrd: should do platform-specific extension string function here vid_isfullscreen = false; - int xPos = SDL_WINDOWPOS_UNDEFINED; - int yPos = SDL_WINDOWPOS_UNDEFINED; #if SDL_MAJOR_VERSION == 1 { const SDL_VideoInfo *vi = SDL_GetVideoInfo(); @@ -2549,6 +2547,8 @@ 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) @@ -2564,7 +2564,6 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode) } else { #ifdef WIN32 - DWORD windowStyle = 0; RECT rect; AdjustWindowBounds(mode, &rect); xPos = rect.left;