mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Fix code formating
This commit is contained in:
parent
04ee8b20a1
commit
f3ca2403fd
|
@ -390,16 +390,19 @@ void CUI::DoLabel(const CUIRect *r, const char *pText, float Size, EAlignment Al
|
|||
case ALIGN_CENTER:
|
||||
{
|
||||
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); break;
|
||||
TextRender()->Text(0, r->x + r->w/2-tw/2, r->y - Size/10, Size, pText, MaxWidth);
|
||||
break;
|
||||
}
|
||||
case ALIGN_LEFT:
|
||||
{
|
||||
TextRender()->Text(0, r->x, r->y - Size/10, Size, pText, MaxWidth); break;
|
||||
TextRender()->Text(0, r->x, r->y - Size/10, Size, pText, MaxWidth);
|
||||
break;
|
||||
}
|
||||
case ALIGN_RIGHT:
|
||||
{
|
||||
float tw = TextRender()->TextWidth(0, Size, pText, MaxWidth);
|
||||
TextRender()->Text(0, r->x + r->w-tw, r->y - Size/10, Size, pText, MaxWidth); break;
|
||||
TextRender()->Text(0, r->x + r->w-tw, r->y - Size/10, Size, pText, MaxWidth);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ public:
|
|||
{
|
||||
ALIGN_LEFT,
|
||||
ALIGN_CENTER,
|
||||
ALIGN_RIGHT
|
||||
ALIGN_RIGHT,
|
||||
};
|
||||
|
||||
int Update(float mx, float my, float Mwx, float Mwy, int m_Buttons);
|
||||
|
|
Loading…
Reference in a new issue