From 75cd136c4435a02a1033d158e8e03d165ddc571b Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 4 Mar 2011 20:32:03 +0000 Subject: [PATCH] (#4922) Use screenYScale, not screenXScale, for scaling Y, by Zack Middleton --- code/cgame/cg_drawtools.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/cgame/cg_drawtools.c b/code/cgame/cg_drawtools.c index df4188fe..c0ce1ef8 100644 --- a/code/cgame/cg_drawtools.c +++ b/code/cgame/cg_drawtools.c @@ -604,7 +604,7 @@ static void UI_DrawBannerString2( int x, int y, const char* str, vec4_t color ) trap_R_SetColor( color ); ax = x * cgs.screenXScale + cgs.screenXBias; - ay = y * cgs.screenXScale; + ay = y * cgs.screenYScale; s = str; while ( *s ) @@ -620,7 +620,7 @@ static void UI_DrawBannerString2( int x, int y, const char* str, vec4_t color ) fwidth = (float)propMapB[ch][2] / 256.0f; fheight = (float)PROPB_HEIGHT / 256.0f; aw = (float)propMapB[ch][2] * cgs.screenXScale; - ah = (float)PROPB_HEIGHT * cgs.screenXScale; + ah = (float)PROPB_HEIGHT * cgs.screenYScale; trap_R_DrawStretchPic( ax, ay, aw, ah, fcol, frow, fcol+fwidth, frow+fheight, cgs.media.charsetPropB ); ax += (aw + (float)PROPB_GAP_WIDTH * cgs.screenXScale); } @@ -728,7 +728,7 @@ static void UI_DrawProportionalString2( int x, int y, const char* str, vec4_t co fwidth = (float)propMap[ch][2] / 256.0f; fheight = (float)PROP_HEIGHT / 256.0f; aw = (float)propMap[ch][2] * cgs.screenXScale * sizeScale; - ah = (float)PROP_HEIGHT * cgs.screenXScale * sizeScale; + ah = (float)PROP_HEIGHT * cgs.screenYScale * sizeScale; trap_R_DrawStretchPic( ax, ay, aw, ah, fcol, frow, fcol+fwidth, frow+fheight, charset ); } else { aw = 0;