aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_life_bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_draw_life_bar.c')
-rw-r--r--src/ft_draw_life_bar.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ft_draw_life_bar.c b/src/ft_draw_life_bar.c
index 7aa5afc..c2aa68f 100644
--- a/src/ft_draw_life_bar.c
+++ b/src/ft_draw_life_bar.c
@@ -73,16 +73,16 @@ static void
if (len == 3)
{
ft_put_next_number(num[0], 0, cl);
- ft_put_next_number(num[1], (1 * (32 * scl) / 4), cl);
- ft_put_next_number(num[2], (2 * (32 * scl) / 4), cl);
+ ft_put_next_number(num[1], (1 * (24 * scl) / 4), cl);
+ ft_put_next_number(num[2], (2 * (24 * scl) / 4), cl);
}
else if (len == 2)
{
- ft_put_next_number(num[0], (1 * (32 * scl) / 4), cl);
- ft_put_next_number(num[1], (2 * (32 * scl) / 4), cl);
+ ft_put_next_number(num[0], (1 * (24 * scl) / 4), cl);
+ ft_put_next_number(num[1], (2 * (24 * scl) / 4), cl);
}
else
- ft_put_next_number(num[0], (2 * (32 * scl) / 4), cl);
+ ft_put_next_number(num[0], (2 * (24 * scl) / 4), cl);
}
static void
@@ -92,17 +92,17 @@ static void
int16_t y;
const int16_t scl = cl->mlist.scale;
- x = ((cl->mlist.map_w * scl) + 20) + (32 * scl) - ((32 * scl) / 4);
+ x = ((cl->mlist.map_w * scl) + 20) + (24 * scl) - ((24 * scl) / 4);
y = cl->wlist.y_size - (cl->mlist.map_h * scl) - 10;
while (y < (int16_t)(cl->wlist.y_size - 10))
{
- x = ((cl->mlist.map_w * scl) + 20) + (32 * scl) - ((32 * scl) / 4);
- while (x < (int16_t)((cl->mlist.map_w * scl) + 10 + ((32 * scl))))
+ x = ((cl->mlist.map_w * scl) + 20) + (24 * scl) - ((24 * scl) / 4);
+ while (x < (int16_t)((cl->mlist.map_w * scl) + 10 + ((24 * scl))))
x++;
y++;
}
y -= cl->wlist.y_size - (cl->mlist.map_h * scl) - 10;
- x -= ((cl->mlist.map_w * scl) + 20) + (32 * scl) - ((32 * scl) / 4);
+ x -= ((cl->mlist.map_w * scl) + 20) + (24 * scl) - ((24 * scl) / 4);
y = (y == 0) ? (1) : (y);
x = (x == 0) ? (1) : (x);
cl->h = y;
@@ -119,6 +119,6 @@ void
calc = ((float)cl->plist.life / (float)FT_STRT_LIFE) * 100.0;
ft_sprintf(num, "%hd", (int16_t)calc);
ft_get_hw(cl);
- ft_put_next_number(58, (3 * (32 * scl) / 4), cl);
+ ft_put_next_number(58, (3 * (24 * scl) / 4), cl);
ft_put_image_from_number(num, cl);
}