diff options
Diffstat (limited to 'src/ft_hex_to_rgb.c')
-rw-r--r-- | src/ft_hex_to_rgb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_hex_to_rgb.c b/src/ft_hex_to_rgb.c index 81c474e..30332cc 100644 --- a/src/ft_hex_to_rgb.c +++ b/src/ft_hex_to_rgb.c @@ -18,8 +18,8 @@ t_bmp_rgb { t_bmp_rgb rgb; - rgb.r = ((color >> 16) & 0xff) / 255.0; - rgb.g = ((color >> 8) & 0xff) / 255.0; - rgb.b = ((color) & 0xff) / 255.0; + rgb.r = (color >> 16) & 255; + rgb.g = (color >> 8) & 255; + rgb.b = color & 255; return (rgb); } |