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