Skip to content

Commit

Permalink
Minor statusbar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viciious committed Dec 21, 2023
1 parent 1d9a801 commit edff599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions st_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,13 +610,13 @@ static void ST_Drawer_ (stbar_t* sb)
break;
case stc_drawhealth:
// CALICO: Fixed EraseBlock call to have proper width
ST_EraseBlock(HEALTHX - 14 * 3 - 2, HEALTHY, 14 * 3 + 4, BIGSHORT(sbobj[0]->height));
ST_EraseBlock(HEALTHX - 14 * 3 - 4, HEALTHY, 14 * 3 + 4, BIGSHORT(sbobj[0]->height));
DrawJagobj(sbobj[sb_percent], HEALTHX, stbar_y + HEALTHY);
ST_DrawValue(HEALTHX, HEALTHY, cmd->value);
break;
case stc_drawarmor:
// CALICO: Fixed EraseBlock call to have proper width
ST_EraseBlock(ARMORX - 14 * 3 - 2, ARMORY, 14 * 3 + 4, BIGSHORT(sbobj[0]->height));
ST_EraseBlock(ARMORX - 14 * 3 - 4, ARMORY, 14 * 3 + 4, BIGSHORT(sbobj[0]->height));
DrawJagobj(sbobj[sb_percent], ARMORX, stbar_y + ARMORY);
ST_DrawValue(ARMORX, ARMORY, cmd->value);
break;
Expand Down
4 changes: 2 additions & 2 deletions st_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define AMMOX 52
#define AMMOY 14

#define HEALTHX 102
#define HEALTHX 104
#define HEALTHY AMMOY

#define KEYX 260
Expand All @@ -24,7 +24,7 @@
#define FACEW 32
#define FACEH 32

#define ARMORX 238
#define ARMORX 240
#define ARMORY HEALTHY

#define STATSX 308
Expand Down

0 comments on commit edff599

Please sign in to comment.