From ced2be0469537a5d21043325c9bc54762197ec30 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sat, 7 Mar 2020 20:30:07 +0100 Subject: qwe --- src/ft_draw_verline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ft_draw_verline.c') diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index 3198357..8621668 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -18,9 +18,10 @@ static void { while ((uint32_t)y < cl->wlist.y_size) { + cl->y = y; *(int*)(cl->img.ptr + (x * 4 + (y * cl->img.sizeline))) - = ft_rgb_to_hex(cl->f_rgb); + = ft_darken_floor(cl->f_rgb, cl); y++; } } @@ -33,9 +34,10 @@ static void i = 0; while (i <= y) { + cl->y = i; *(int*)(cl->img.ptr + (x * 4 + (i * cl->img.sizeline))) - = ft_darken_rgb(cl->c_rgb, cl); + = ft_darken_ceil(cl->c_rgb, cl); i++; } } -- cgit v1.2.3