mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
Fixed missing lines in listmenuitems
This commit is contained in:
parent
3e7d304de0
commit
9712409f08
1 changed files with 6 additions and 2 deletions
|
@ -294,8 +294,12 @@ class ListMenuItemTextItem : ListMenuItemSelectable
|
|||
override void Draw(bool selected, ListMenuDescriptor desc)
|
||||
{
|
||||
let font = menuDelegate.PickFont(mFont);
|
||||
if (desc.mCenterText) x -= font.StringWidth(mText) / 2;
|
||||
DrawText(desc, font, selected ? mColorSelected : mColor, mXpos, mYpos, mText);
|
||||
double x = mXpos;
|
||||
if (desc.mCenterText)
|
||||
{
|
||||
x -= font.StringWidth(mText) / 2;
|
||||
}
|
||||
DrawText(desc, font, selected ? mColorSelected : mColor, x, mYpos, mText);
|
||||
}
|
||||
|
||||
override int GetWidth()
|
||||
|
|
Loading…
Reference in a new issue