mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- fixed: MenuDelegateBase.DrawCaption did not check the 'drawit' flag.
This commit is contained in:
parent
e636c8044d
commit
824d4bd9e3
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ class MenuDelegateBase ui
|
|||
{
|
||||
virtual int DrawCaption(String title, Font fnt, int y, bool drawit)
|
||||
{
|
||||
screen.DrawText(fnt, OptionMenuSettings.mTitleColor, (screen.GetWidth() - fnt.StringWidth(title) * CleanXfac_1) / 2, 10 * CleanYfac_1, title, DTA_CleanNoMove_1, true);
|
||||
if (drawit) screen.DrawText(fnt, OptionMenuSettings.mTitleColor, (screen.GetWidth() - fnt.StringWidth(title) * CleanXfac_1) / 2, 10 * CleanYfac_1, title, DTA_CleanNoMove_1, true);
|
||||
return (y + fnt.GetHeight()) * CleanYfac_1; // return is spacing in screen pixels.
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue