From bf045895108967d63b96943d55a03ffcea85187f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 24 Dec 2009 05:46:16 +0000 Subject: [PATCH] conheight proved to be eaiser than expected (d'oh, don't know why I couldn't see the obvious) --- libs/video/targets/vid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/video/targets/vid.c b/libs/video/targets/vid.c index 0b0ac879a..d312ae18b 100644 --- a/libs/video/targets/vid.c +++ b/libs/video/targets/vid.c @@ -153,7 +153,7 @@ VID_GetWindowSize (int def_w, int def_h) Cvar_SetFlags (con_width, con_width->flags | CVAR_ROM); vid.conwidth = con_width->int_val; - conheight = (vid.conwidth * 3) / 4; + conheight = (vid.conwidth * vid_aspect->vec[1]) / vid_aspect->vec[0]; con_height = Cvar_Get ("con_height", va ("%d", conheight), CVAR_NONE, NULL, "console effective height (GL only)"); if ((pnum = COM_CheckParm ("-conheight"))) {