(#4922) Use screenYScale, not screenXScale, for scaling Y, by Zack Middleton

This commit is contained in:
Thilo Schulz committed 2011-03-04 20:32:03 +00:00
1 parent b764150a97
commit 75cd136c44
1 file changed
+3 -3
+3 -3
View File
@@ -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;