- fixed key alignment on Exhumed's status bar.

Fixes #281
This commit is contained in:
Christoph Oelckers 2020-09-07 22:19:37 +02:00
parent a2e3bb5725
commit 04ec21d6b6
2 changed files with 9 additions and 4 deletions

View file

@ -676,7 +676,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define kTile654 654
#define kTile655 655
#define kTile656 656
#define kTile657 657
#define kTileStatusBar 657
#define kTile658 658
#define kTile659 659
#define kTile660 660

View file

@ -545,8 +545,13 @@ private:
int flags = DI_ITEM_RELCENTER;
int x = ChunkXpos[nFrameBase];
int y = ChunkYpos[nFrameBase] + ebx;
double x = ChunkXpos[nFrameBase];
double y = ChunkYpos[nFrameBase] + ebx;
if (x > 0)
{
if (xoffset == 0) { x += 0.5; y += 0.5; }
}
if (hud_size <= Hud_StbarOverlay)
{
@ -710,7 +715,7 @@ private:
{
// draw the main bar itself
BeginStatusBar(320, 200, 40);
DrawStatusSequence(nStatusSeqOffset, 0, 0);
DrawGraphic(tileGetTexture(kTileStatusBar), 160, 200, DI_ITEM_CENTER_BOTTOM, 1, -1, -1, 1, 1);
}
else if (hud_size == Hud_Mini)
{