[quake3-commits] r1905 - trunk/code/cgame

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Mar 4 15:32:03 EST 2011


Author: thilo
Date: 2011-03-04 15:32:03 -0500 (Fri, 04 Mar 2011)
New Revision: 1905

Modified:
   trunk/code/cgame/cg_drawtools.c
Log:
(#4922) Use screenYScale, not screenXScale, for scaling Y, by Zack Middleton


Modified: trunk/code/cgame/cg_drawtools.c
===================================================================
--- trunk/code/cgame/cg_drawtools.c	2011-03-04 20:29:24 UTC (rev 1904)
+++ trunk/code/cgame/cg_drawtools.c	2011-03-04 20:32:03 UTC (rev 1905)
@@ -604,7 +604,7 @@
 	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 @@
 			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 @@
 			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;



More information about the quake3-commits mailing list