From 04658c5e9a019917c3f8ffeb84562c328da0a885 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 6 Mar 2020 18:40:56 +0100 Subject: ils se cachent (mal) --- src/ft_draw_verline.c | 9 +++++---- 1 file changed, 5 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 2b684eb..220badb 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -19,11 +19,12 @@ uint32_t (void)it; res = 0; - if (it < 255) + while (it < 500) { - rgb.r += it; - rgb.g += it; - rgb.b += it; + rgb.r += 1; + rgb.g += 1; + rgb.b += 1; + it++; } res += ((rgb.r << 16) + (rgb.g << 8) + rgb.b); return (res); -- cgit v1.2.3