diff options
| author | Choupom <andycootlapin@hotmail.fr> | 2010-10-20 21:33:48 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-25 18:59:33 +0200 |
| commit | d2519f7ab9b96a64d6ee03123a7ba498a78db10c (patch) | |
| tree | a4a4e3cee699e8b6341c718535d9c4f468f82f31 /src/game/client/ui.cpp | |
| parent | 65be8e5750562e43bf76a0fd9c3e7d257a72423a (diff) | |
| download | zcatch-d2519f7ab9b96a64d6ee03123a7ba498a78db10c.tar.gz zcatch-d2519f7ab9b96a64d6ee03123a7ba498a78db10c.zip | |
small ui fixes
Diffstat (limited to 'src/game/client/ui.cpp')
| -rw-r--r-- | src/game/client/ui.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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); } } |