diff options
Diffstat (limited to 'inc/cub3d.h')
-rw-r--r-- | inc/cub3d.h | 10 |
1 files changed, 4 insertions, 6 deletions
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 |