From c51419a68e38ed3a2eb28e740f72eaa436fbd106 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 9 Mar 2020 01:52:21 +0100 Subject: Boy --- src/ft_draw_verline.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/ft_draw_verline.c') diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index b6729de..7bfba8d 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -13,33 +13,6 @@ #include #include -/* static void */ -/* ft_draw_floor(t_cub *cl, int32_t y, int32_t x) */ -/* { */ -/* while ((uint32_t)y < cl->wlist.y_size) */ -/* { */ -/* *(int*)(cl->img.ptr + */ -/* (x * 4 + (y * cl->img.sizeline))) */ -/* = ft_darken_floor(cl->f_rgb, y, cl); */ -/* y++; */ -/* } */ -/* } */ - -static void - ft_draw_ceil(t_cub *cl, int32_t y, int32_t x) -{ - int16_t i; - - i = 0; - while (i <= y) - { - *(int*)(cl->img.ptr + - (x * 4 + (i * cl->img.sizeline))) - = ft_darken_ceil(cl->c_rgb, i, cl); - i++; - } -} - int8_t ft_draw_verline(t_cub *cl, int32_t x, int32_t y, int32_t y2) { @@ -48,7 +21,6 @@ int8_t (y < 0) ? (y = 0) : 0; (y2 < 0) ? (y2 = 0) : 0; - ft_draw_ceil(cl, y, x); (cl->rlist.line_h <= 0) ? (cl->rlist.line_h = 1) : 0; while (y < y2) { @@ -59,6 +31,5 @@ int8_t ft_draw_texture(cl, x, y, tex_y); y++; } - /* ft_draw_floor(cl, y, x); */ return (0); } -- cgit v1.2.3