mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Remove redudant rserr_invalid_fullscreen check
This commit is contained in:
parent
f6361740f5
commit
86dd7e6d2d
2 changed files with 2 additions and 14 deletions
|
@ -87,7 +87,6 @@ typedef enum
|
|||
{
|
||||
rserr_ok,
|
||||
|
||||
rserr_invalid_fullscreen,
|
||||
rserr_invalid_mode,
|
||||
|
||||
rserr_unknown
|
||||
|
|
|
@ -1516,8 +1516,7 @@ RE_SetMode(void)
|
|||
vid.height = r_customheight->value;
|
||||
|
||||
/*
|
||||
** if this returns rserr_invalid_fullscreen then it set the mode but not as a
|
||||
** fullscreen mode, e.g. 320x200 on a system that doesn't support that res
|
||||
** if this returns rserr_invalid_mode then it set previous resolution
|
||||
*/
|
||||
if ((err = SWimp_SetMode(&vid.width, &vid.height, r_mode->value, fullscreen)) == rserr_ok)
|
||||
{
|
||||
|
@ -1532,17 +1531,7 @@ RE_SetMode(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (err == rserr_invalid_fullscreen)
|
||||
{
|
||||
ri.Cvar_SetValue("vid_fullscreen", 0);
|
||||
R_Printf(PRINT_ALL, "%s() - fullscreen unavailable in this mode\n", __func__);
|
||||
|
||||
if (SWimp_SetMode(&vid.width, &vid.height, r_mode->value, 0) == rserr_ok)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (err == rserr_invalid_mode)
|
||||
if (err == rserr_invalid_mode)
|
||||
{
|
||||
R_Printf(PRINT_ALL, "%s() - invalid mode\n", __func__);
|
||||
|
||||
|
|
Loading…
Reference in a new issue