mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-23 21:03:02 +00:00
sdl2: Make -win toggle cvar instead of disabling fullscreen
This commit is contained in:
parent
ad1b9f93c8
commit
40de8ea630
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue