- always use the narrow status bar for overlay mode.

This commit is contained in:
Christoph Oelckers 2020-09-07 19:43:46 +02:00
parent bd183ad682
commit fc435565af
1 changed files with 4 additions and 3 deletions

View File

@ -380,13 +380,14 @@ public:
void Statusbar(int snum)
{
int tile = hud_size < Hud_StbarOverlay ? TILE_BOTTOMSTATUSBAR : BOTTOMSTATUSBAR; // always use the narrow version for the overlay.
auto p = &ps[snum];
int h = tilesiz[TILE_BOTTOMSTATUSBAR].y;
int h = tilesiz[tile].y;
int top = 200 - h;
int left = (320 - tilesiz[TILE_BOTTOMSTATUSBAR].x) / 2;
int left = (320 - tilesiz[tile].x) / 2;
BeginStatusBar(320, 200, h);
DrawInventory(p, 160, 154, 0);
DrawGraphic(tileGetTexture(TILE_BOTTOMSTATUSBAR), left, top, DI_ITEM_LEFT_TOP, 1, -1, -1, 1, 1);
DrawGraphic(tileGetTexture(tile), left, top, DI_ITEM_LEFT_TOP, 1, -1, -1, 1, 1);
FString format;