diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_ammo_caption.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_draw_ammo_caption.c b/src/ft_draw_ammo_caption.c index 0d35c34..96e37a2 100644 --- a/src/ft_draw_ammo_caption.c +++ b/src/ft_draw_ammo_caption.c @@ -20,17 +20,17 @@ static void cl->img.ptr[(x + 20) * 4 + (cl->img.sizeline * (y + cl->wlist.y_size - - (2 * ((cl->mlist.map_h * scl) - 20) - 10)))] = + (2 * ((cl->mlist.map_h * scl)) + 20 - 10)))] = (uint8_t)cl->tlist[22].ptr[cl->tlist[22].tex_x * 4 + 4 * cl->tlist[22].img_w * cl->tlist[22].tex_y]; cl->img.ptr[(x + 20) * 4 + (cl->img.sizeline * (y + cl->wlist.y_size - - (2 * ((cl->mlist.map_h * scl) - 20) - 10))) + 1] = + (2 * ((cl->mlist.map_h * scl)) + 20 - 10))) + 1] = (uint8_t)cl->tlist[22].ptr[cl->tlist[22].tex_x * 4 + 4 * cl->tlist[22].img_w * cl->tlist[22].tex_y + 1]; cl->img.ptr[(x + 20) * 4 + (cl->img.sizeline * (y + cl->wlist.y_size - - (2 * ((cl->mlist.map_h * scl) - 20) - 10))) + 2] = + (2 * ((cl->mlist.map_h * scl)) + 20 - 10))) + 2] = (uint8_t)cl->tlist[22].ptr[cl->tlist[22].tex_x * 4 + 4 * cl->tlist[22].img_w * cl->tlist[22].tex_y + 2]; } @@ -70,15 +70,15 @@ static void const int16_t scl = cl->mlist.scale; x = 20; - y = cl->wlist.y_size - (2 * ((cl->mlist.map_h * scl) - 20) - 10); + y = cl->wlist.y_size - (2 * ((cl->mlist.map_h * scl)) + 20 - 10); while (y < (int16_t)((cl->wlist.y_size - 10) - - (2 * ((cl->mlist.map_h * scl) / 1.3)) - 10)) + - (2 * ((cl->mlist.map_h * scl) / 1.3)) - 40)) { while (x < (int16_t)((cl->mlist.map_w * scl) + 5)) x++; y++; } - y -= cl->wlist.y_size - (2 * ((cl->mlist.map_h * scl) - 20) - 10); + y -= cl->wlist.y_size - (2 * ((cl->mlist.map_h * scl)) + 20 - 10); x -= 20; y = (y <= 0) ? (1) : (y); x = (x <= 0) ? (1) : (x); |