From b729c722cb6fea7a88929e0054508bfa60c27ed5 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 5 Mar 2020 00:30:41 +0100 Subject: How do I convert hex to rgb pls --- src/ft_hex_to_rgb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ft_hex_to_rgb.c') diff --git a/src/ft_hex_to_rgb.c b/src/ft_hex_to_rgb.c index 03e9643..81c474e 100644 --- a/src/ft_hex_to_rgb.c +++ b/src/ft_hex_to_rgb.c @@ -13,10 +13,10 @@ #include #include -t_rgb - ft_hex_to_rgb(int32_t color) +t_bmp_rgb + ft_hex_to_rgb(uint32_t color) { - t_rgb rgb; + t_bmp_rgb rgb; rgb.r = ((color >> 16) & 0xff) / 255.0; rgb.g = ((color >> 8) & 0xff) / 255.0; -- cgit v1.2.3