diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_floor_cast.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ft_floor_cast.c b/src/ft_floor_cast.c index d2c6046..1082fe5 100644 --- a/src/ft_floor_cast.c +++ b/src/ft_floor_cast.c @@ -16,16 +16,8 @@ static void ft_draw_plain_horizontal(t_rgb rgb, t_cub *cl, int32_t y, int32_t x) { - if (cl->mlist.darklvl > 0) - { - *(int*)(cl->img.ptr + + *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) = ft_darken(rgb, cl); - } - else - { - *(int*)(cl->img.ptr + - (x * 4 + (y * cl->img.sizeline))) = ft_rgb_to_hex(rgb); - } } static void |