mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
Fixed: FOptionMenuItem::GetIndent() did not handle localized strings
This commit is contained in:
parent
0cbb3132e6
commit
ca16d99445
1 changed files with 7 additions and 1 deletions
|
@ -489,7 +489,13 @@ bool FOptionMenuItem::MouseEvent(int type, int x, int y)
|
||||||
|
|
||||||
int FOptionMenuItem::GetIndent()
|
int FOptionMenuItem::GetIndent()
|
||||||
{
|
{
|
||||||
return mCentered? 0 : SmallFont->StringWidth(mLabel);
|
if (mCentered)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
const char *label = mLabel;
|
||||||
|
if (*label == '$') label = GStrings(label+1);
|
||||||
|
return SmallFont->StringWidth(label);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FOptionMenuItem::drawLabel(int indent, int y, EColorRange color, bool grayed)
|
void FOptionMenuItem::drawLabel(int indent, int y, EColorRange color, bool grayed)
|
||||||
|
|
Loading…
Reference in a new issue