From d1097088999c538601158805cf77250d51513f98 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 5 Feb 2020 13:32:40 +0100 Subject: Don't mess with me boy --- inc/cub3d.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'inc') diff --git a/inc/cub3d.h b/inc/cub3d.h index f031c1c..cf35d92 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -32,14 +32,19 @@ # ifndef FT_ESC_KEY # define FT_ESC_KEY 53 # endif +# ifndef FT_SCR_SIZE +# define FT_SCR_SIZE 1980x1080 +# endif typedef struct s_win { void *wlx; void *winptr; uint8_t inited; - int16_t x_size; - int16_t y_size; + uint16_t x_max_size; + uint16_t y_max_size; + uint16_t x_size; + uint16_t y_size; } t_win; typedef struct s_img @@ -103,6 +108,7 @@ int ft_exit(uint8_t exit_code, t_cub *clist); void ft_drawsquare(int a, int b, int rgb, t_cub *clist); void ft_parse_map(const char *map_path, t_cub *clist); uint8_t ft_select_get(char **words, t_cub *clist); +int8_t ft_get_screen_size(t_win *wlist); int ft_get_res(char **words, t_cub *clist); int ft_get_tex_no(char **words, t_cub *clist); int ft_get_tex_so(char **words, t_cub *clist); @@ -118,7 +124,7 @@ int ft_check_missing(t_cub *clist); int8_t ft_check_map_line(char *line, uint8_t l, t_cub *clist); size_t ft_get_line_len(char *line); int ft_missing_error(const char *err, t_cub *clist); -void ft_free_words(char **words); +uint8_t ft_free_words(char **words); int ft_map_error(t_cub *clist); int ft_init_winlx(t_cub *clist); void ft_drawmap(t_cub *clist); -- cgit v1.2.3