From 173875eb5f76e4843951948b56a2bce8dfb97437 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 3 Oct 2004 09:46:09 +0000 Subject: [PATCH] fixing gl_2dscale bugs git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@288 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_screen.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/gl/gl_screen.c b/engine/gl/gl_screen.c index 9753d0841..639059268 100644 --- a/engine/gl/gl_screen.c +++ b/engine/gl/gl_screen.c @@ -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();