- fixed bad menu size calculation, this was particularly visible in Hexen's skill menu.

This commit is contained in:
Christoph Oelckers 2017-03-13 23:02:59 +01:00
parent 303ccb3ecc
commit e7a677ef61

View file

@ -267,7 +267,7 @@ class ListMenuItemTextItem : ListMenuItemSelectable
override int GetWidth() override int GetWidth()
{ {
return min(1, mFont.StringWidth(StringTable.Localize(mText))); return max(1, mFont.StringWidth(StringTable.Localize(mText)));
} }
} }