aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_verline.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-08 15:28:26 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-08 15:28:26 +0100
commit3205176d60f52ce487c3e3c5efaa89e15b9dd5ca (patch)
tree4a41010a24a01be60eb11a77e3556d7643b67769 /src/ft_draw_verline.c
parentNorme iksde (diff)
download42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.tar.gz
42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.tar.bz2
42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.tar.xz
42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.tar.zst
42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.zip
Normed
Diffstat (limited to 'src/ft_draw_verline.c')
-rw-r--r--src/ft_draw_verline.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c
index 3728996..915e513 100644
--- a/src/ft_draw_verline.c
+++ b/src/ft_draw_verline.c
@@ -28,7 +28,6 @@ static void
cl->img.ptr[x * 4 + cl->wlist.x_size * y + 3] = (int8_t)0;
}
-#include <libft.h>
static void
ft_draw_floor(t_cub *cl, int32_t y, int32_t x)
{
@@ -57,9 +56,9 @@ static void
cl->tlist[6].tex_y = (cl->tlist[6].tex_y > 0)
? (cl->tlist[6].tex_y) : (-cl->tlist[6].tex_y);
ft_draw_floor_tex(cl, y, x, cl->tlist[6].tex_y);
- /* *(int*)(cl->img.ptr + */
- /* (x * 4 + (y * cl->img.sizeline))) */
- /* = ft_darken_floor(cl->f_rgb, weight, cl); */
+ *(int*)(cl->img.ptr +
+ (x * 4 + (y * cl->img.sizeline)))
+ = ft_darken_floor(cl->f_rgb, weight, cl);
y++;
}
}