mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 04:01:31 +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)
|
override void Draw(bool selected, ListMenuDescriptor desc)
|
||||||
{
|
{
|
||||||
let font = menuDelegate.PickFont(mFont);
|
let font = menuDelegate.PickFont(mFont);
|
||||||
if (desc.mCenterText) x -= font.StringWidth(mText) / 2;
|
double x = mXpos;
|
||||||
DrawText(desc, font, selected ? mColorSelected : mColor, mXpos, mYpos, mText);
|
if (desc.mCenterText)
|
||||||
|
{
|
||||||
|
x -= font.StringWidth(mText) / 2;
|
||||||
|
}
|
||||||
|
DrawText(desc, font, selected ? mColorSelected : mColor, x, mYpos, mText);
|
||||||
}
|
}
|
||||||
|
|
||||||
override int GetWidth()
|
override int GetWidth()
|
||||||
|
|
Loading…
Reference in a new issue