From 08dce587032f08c5bfbc2790bdb2d668ca1990c1 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 5 Feb 2020 17:26:10 +0100 Subject: int16_tamer --- inc/cub3d.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index f017973..7ea11d6 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -58,9 +58,9 @@ typedef struct s_img typedef struct s_rgb { - uint8_t r; - uint8_t g; - uint8_t b; + int16_t r; + int16_t g; + int16_t b; } t_rgb; /* @@ -85,8 +85,6 @@ typedef struct s_cub char *ea_tex_path; char *we_tex_path; char *sprite_path; - int f_color; - int c_color; char *mapl; char **map; size_t map_w; @@ -130,6 +128,6 @@ int ft_map_error(t_cub *clist); int ft_init_winlx(t_cub *clist); void ft_drawmap(t_cub *clist); void ft_print_list(t_cub *clist); -int ft_rgb_to_hex(t_rgb rgb); +uint32_t ft_rgb_to_hex(t_rgb rgb); # endif -- cgit v1.2.3