aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_verline.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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++;
}
}