From 08dce587032f08c5bfbc2790bdb2d668ca1990c1 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 5 Feb 2020 17:26:10 +0100 Subject: int16_tamer --- src/ft_get_colors.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/ft_get_colors.c') diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c index 249ff5a..52461ea 100644 --- a/src/ft_get_colors.c +++ b/src/ft_get_colors.c @@ -45,12 +45,6 @@ int8_t ft_free_words(num); return (-1); } - clist->f_color = ft_atoi(num[0]); - clist->f_color *= 1000; - clist->f_color += ft_atoi(num[1]); - clist->f_color *= 1000; - clist->f_color += ft_atoi(num[2]); - clist->f_rgb.r = ft_atoi(num[0]); clist->f_rgb.g = ft_atoi(num[1]); clist->f_rgb.b = ft_atoi(num[2]); @@ -75,12 +69,6 @@ int8_t ft_free_words(num); return (-1); } - clist->c_color = ft_atoi(num[0]); - clist->c_color *= 1000; - clist->c_color += ft_atoi(num[1]); - clist->c_color *= 1000; - clist->c_color += ft_atoi(num[2]); - clist->c_rgb.r = ft_atoi(num[0]); clist->c_rgb.g = ft_atoi(num[1]); clist->c_rgb.b = ft_atoi(num[2]); -- cgit v1.2.3