From 40de8ea6304e7c820086efa4cf22943019876c34 Mon Sep 17 00:00:00 2001 From: Ronald Kinard Date: Thu, 20 Mar 2014 17:48:10 -0500 Subject: [PATCH] sdl2: Make -win toggle cvar instead of disabling fullscreen --- src/sdl2/i_video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdl2/i_video.c b/src/sdl2/i_video.c index a46f4fde7..b2be6db49 100644 --- a/src/sdl2/i_video.c +++ b/src/sdl2/i_video.c @@ -230,7 +230,6 @@ static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen) } SDL_RenderSetLogicalSize(renderer, width, height); - //SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear"); // Set up Texture realwidth = width; @@ -480,7 +479,6 @@ static INT32 SDLatekey(SDL_Keycode sym) static void SDLdoUngrabMouse(void) { SDL_SetWindowGrab(window, SDL_FALSE); - SDL2STUB(); } void SDLforceUngrabMouse(void) @@ -1800,9 +1798,11 @@ void I_StartupGraphics(void) disable_mouse = M_CheckParm("-nomouse"); if (disable_mouse) I_PutEnv(SDLNOMOUSE); + /* if (!I_GetEnv("SDL_VIDEO_CENTERED")) I_PutEnv(SDLVIDEOMID); - disable_fullscreen = M_CheckParm("-win"); + */ + CV_SetValue(&cv_fullscreen, M_CheckParm("-win") ? 0 : 1); keyboard_started = true;