]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Explain the reason why newSize_x is unused
authorterencehill <piuntn@gmail.com>
Tue, 17 Jan 2012 11:15:07 +0000 (12:15 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 17 Jan 2012 12:34:44 +0000 (13:34 +0100)
qcsrc/client/hud.qc

index efab2ec8a13bf9292ecd6ce96270f61993ab1c0a..02cd45d2389e1ae41bf3dc561daa53e15b02dd02 100644 (file)
@@ -1061,8 +1061,8 @@ void DrawNumIcon_expanding(vector myPos, vector mySize, float x, string icon, fl
                picpos = newPos;
        }
 
-       // FIXME newSize_x is unused, is that right?
-
+       // NOTE: newSize_x is always equal to 3 * mySize_y so we can use
+       // '2 1 0' * newSize_y instead of eX * (2/3) * newSize_x + eY * newSize_y
        drawstring_aspect_expanding(numpos, ftos(x), '2 1 0' * newSize_y, color, panel_fg_alpha * theAlpha, DRAWFLAG_NORMAL, fadelerp);
        drawpic_aspect_skin_expanding(picpos, icon, '1 1 0' * newSize_y, '1 1 1', panel_fg_alpha * theAlpha, DRAWFLAG_NORMAL, fadelerp);
 }