should make task switches more reliable.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@255 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-09-27 07:23:47 +00:00
parent 98f3a782f7
commit 75764a9c5d
1 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,11 @@ void GLSCR_UpdateScreen (void)
old2dscale = gl_2dscale.value; old2dscale = gl_2dscale.value;
vid.width = vid.conwidth = (glwidth - 320) * gl_2dscale.value + 320; vid.width = vid.conwidth = (glwidth - 320) * gl_2dscale.value + 320;
vid.height = vid.conheight = (glheight - 240) * gl_2dscale.value + 240; vid.height = vid.conheight = (glheight - 240) * gl_2dscale.value + 240;
//pretect against too small resolutions (possibly minimising task switches).
if (vid.width<320)
vid.width=320;
if (vid.height<200)
vid.height=200;
vid.recalc_refdef = true; vid.recalc_refdef = true;
Con_CheckResize(); Con_CheckResize();