From d2519f7ab9b96a64d6ee03123a7ba498a78db10c Mon Sep 17 00:00:00 2001 From: Choupom Date: Wed, 20 Oct 2010 21:33:48 +0200 Subject: small ui fixes --- src/game/client/ui.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/game/client/ui.cpp') diff --git a/src/game/client/ui.cpp b/src/game/client/ui.cpp index 2895b717..0759d0c1 100644 --- a/src/game/client/ui.cpp +++ b/src/game/client/ui.cpp @@ -308,21 +308,21 @@ int CUI::DoButton(const void *id, const char *text, int checked, const CUIRect * return ret; }*/ -void CUI::DoLabel(const CUIRect *r, const char *pText, float size, int Align, int MaxWidth) +void CUI::DoLabel(const CUIRect *r, const char *pText, float Size, int Align, int MaxWidth) { // TODO: FIX ME!!!! //Graphics()->BlendNormal(); - size *= Scale(); + Size *= Scale(); if(Align == 0) { - float tw = TextRender()->TextWidth(0, size, pText, MaxWidth); - TextRender()->Text(0, r->x + r->w/2-tw/2, r->y - size/10, size, pText, MaxWidth); + float tw = TextRender()->TextWidth(0, Size, pText, MaxWidth); + TextRender()->Text(0, r->x + r->w/2-tw/2, r->y - Size/10, Size, pText, MaxWidth); } else if(Align < 0) - TextRender()->Text(0, r->x, r->y - size/10, size, pText, MaxWidth); + TextRender()->Text(0, r->x, r->y - Size/10, Size, pText, MaxWidth); else if(Align > 0) { - float tw = TextRender()->TextWidth(0, size, pText, MaxWidth); - TextRender()->Text(0, r->x + r->w-tw, r->y - size/10, size, pText, MaxWidth); + float tw = TextRender()->TextWidth(0, Size, pText, MaxWidth); + TextRender()->Text(0, r->x + r->w-tw, r->y - Size/10, Size, pText, MaxWidth); } } -- cgit 1.4.1