aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_hud.c
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-03-11 18:59:58 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-03-11 18:59:58 +0100
commitb6388b5101d8187f746f91c89842e932a1d01cb6 (patch)
tree70bd9ba7012f5906db01b485ec8f58f5a4697240 /src/ft_draw_hud.c
parentclose but no cigar (diff)
parentca tue (diff)
download42-cub3d-b6388b5101d8187f746f91c89842e932a1d01cb6.tar.gz
42-cub3d-b6388b5101d8187f746f91c89842e932a1d01cb6.tar.bz2
42-cub3d-b6388b5101d8187f746f91c89842e932a1d01cb6.tar.xz
42-cub3d-b6388b5101d8187f746f91c89842e932a1d01cb6.tar.zst
42-cub3d-b6388b5101d8187f746f91c89842e932a1d01cb6.zip
get merged
Diffstat (limited to '')
-rw-r--r--src/ft_draw_hud.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_hud.c b/src/ft_draw_hud.c
index 4ae497a..486112d 100644
--- a/src/ft_draw_hud.c
+++ b/src/ft_draw_hud.c
@@ -65,7 +65,7 @@ static void
while (y < clist->wlist.y_size - (clist->mlist.map_h * scl) - 20)
{
*(int*)(clist->img.ptr +
- ((uint8_t)x * 4 + (y * clist->img.sizeline))) = col;
+ ((uint16_t)x * 4 + (y * clist->img.sizeline))) = col;
y++;
}
y = clist->wlist.y_size - (clist->mlist.map_h * scl) - 45;