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:
parent
d89c1944ff
commit
173875eb5f
1 changed files with 7 additions and 0 deletions
|
@ -78,11 +78,18 @@ void GLSCR_UpdateScreen (void)
|
|||
old2dscale = gl_2dscale.value;
|
||||
vid.width = vid.conwidth = (glwidth - 320) * gl_2dscale.value + 320;
|
||||
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;
|
||||
vid.conwidth=320;
|
||||
}
|
||||
if (vid.height<200)
|
||||
{
|
||||
vid.height=200;
|
||||
vid.conheight=200;
|
||||
}
|
||||
|
||||
vid.recalc_refdef = true;
|
||||
Con_CheckResize();
|
||||
|
|
Loading…
Reference in a new issue