[nexuiz-commits] r7307 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Aug 3 13:18:20 EDT 2009


Author: div0
Date: 2009-08-03 13:18:20 -0400 (Mon, 03 Aug 2009)
New Revision: 7307

Modified:
   trunk/data/qcsrc/client/sbar.qc
Log:
fteqcc...


Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc	2009-08-03 16:52:46 UTC (rev 7306)
+++ trunk/data/qcsrc/client/sbar.qc	2009-08-03 17:18:20 UTC (rev 7307)
@@ -979,7 +979,8 @@
 				}
 			}
 
-			tmp_x = (sbar_size[i] - stringwidth(sbar_title[i], FALSE)) * sbar_fontsize_x;
+			tmp_x = stringwidth(sbar_title[i], FALSE);
+			tmp_x = (sbar_size[i] - tmp_x) * sbar_fontsize_x;
 			drawstring(pos + tmp, sbar_title[i], sbar_fontsize, rgb, 1, DRAWFLAG_NORMAL);
 			pos_x -= sbar_fontsize_x;
 		}



More information about the nexuiz-commits mailing list