From: terencehill Date: Tue, 17 Jan 2012 11:15:07 +0000 (+0100) Subject: Explain the reason why newSize_x is unused X-Git-Tag: xonotic-v0.6.0~78^2^2~2^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ab52758792cb17dabc4791d1d613ec9181faa60c;p=xonotic%2Fxonotic-data.pk3dir.git Explain the reason why newSize_x is unused --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index efab2ec8a..02cd45d23 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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); }