Fixed applying of flags on fullscreen inventory bar

DI_ALWAYSSHOWCOUNTERS and DI_DRAWCURSORFIRST flags are no longer ignored in BaseStatusBar.DrawInventoryBar() function
https://forum.zdoom.org/viewtopic.php?t=56798
This commit is contained in:
alexey.lysiuk 2017-06-18 16:57:05 +03:00
parent 3b024c347b
commit 9b446e41fc

View file

@ -1058,7 +1058,7 @@ class BaseStatusBar native ui
{ {
for(int j = 0; j < 2; j++) for(int j = 0; j < 2; j++)
{ {
if (j ^ !!(parms.flags & DI_DRAWCURSORFIRST)) if (j ^ !!(flags & DI_DRAWCURSORFIRST))
{ {
if (item == CPlayer.mo.InvSel) if (item == CPlayer.mo.InvSel)
{ {
@ -1073,7 +1073,7 @@ class BaseStatusBar native ui
} }
} }
if (parms.amountfont != null && (item.Amount > 1 || (parms.flags & DI_ALWAYSSHOWCOUNTERS))) if (parms.amountfont != null && (item.Amount > 1 || (flags & DI_ALWAYSSHOWCOUNTERS)))
{ {
DrawString(parms.amountfont, FormatNumber(item.Amount, 0, 5), textpos + (boxsize.X * i, 0), flags | DI_TEXT_ALIGN_RIGHT, parms.cr, parms.itemalpha); DrawString(parms.amountfont, FormatNumber(item.Amount, 0, 5), textpos + (boxsize.X * i, 0), flags | DI_TEXT_ALIGN_RIGHT, parms.cr, parms.itemalpha);
} }