From 5a44d42688a0d922a7e0e1da1883765f2015a3ff Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 8 Aug 2005 01:10:42 +0000 Subject: [PATCH] Small bug fixed, reported by shadowalker. -width sends -height the wrong way (4/3 instead of 3/4) git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1210 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 7b690c620..a7969609a 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -2999,7 +2999,7 @@ void Host_Init (quakeparms_t *parms) if ((i = COM_CheckParm ("-width"))) //width on it's own also sets height { Cvar_Set(Cvar_FindVar("vid_width"), com_argv[i+1]); - Cvar_SetValue(Cvar_FindVar("vid_height"), (atoi(com_argv[i+1])/3)*4); + Cvar_SetValue(Cvar_FindVar("vid_height"), (atoi(com_argv[i+1])/4)*3); } if ((i = COM_CheckParm ("-height"))) Cvar_Set(Cvar_FindVar("vid_height"), com_argv[i+1]); @@ -3007,7 +3007,7 @@ void Host_Init (quakeparms_t *parms) if ((i = COM_CheckParm ("-conwidth"))) //width on it's own also sets height { Cvar_Set(Cvar_FindVar("vid_conwidth"), com_argv[i+1]); - Cvar_SetValue(Cvar_FindVar("vid_conheight"), (atoi(com_argv[i+1])/3)*4); + Cvar_SetValue(Cvar_FindVar("vid_conheight"), (atoi(com_argv[i+1])/4)*3); } if ((i = COM_CheckParm ("-conheight"))) Cvar_Set(Cvar_FindVar("vid_conheight"), com_argv[i+1]);