1
0
Fork 0
forked from fte/fteqw

fixing gl_2dscale bugs

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@288 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-10-03 09:46:09 +00:00
parent d89c1944ff
commit 173875eb5f

View file

@ -78,11 +78,18 @@ 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). //pretect against too small resolutions (possibly minimising task switches).
if (vid.width<320) if (vid.width<320)
{
vid.width=320; vid.width=320;
vid.conwidth=320;
}
if (vid.height<200) if (vid.height<200)
{
vid.height=200; vid.height=200;
vid.conheight=200;
}
vid.recalc_refdef = true; vid.recalc_refdef = true;
Con_CheckResize(); Con_CheckResize();