aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_hex_to_rgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_hex_to_rgb.c')
-rw-r--r--src/ft_hex_to_rgb.c6
1 files changed, 3 insertions, 3 deletions
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 <cub3d.h>
#include <stdint.h>
-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;