From 1b3cf4e3ce43e556ef47c669511620815b747221 Mon Sep 17 00:00:00 2001
From: JozanLeClerc <bousset.rudy@gmail.com>
Date: Tue, 28 Jan 2020 16:01:25 +0100
Subject: I understood

---
 inc/cub3d.h | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

(limited to 'inc')

diff --git a/inc/cub3d.h b/inc/cub3d.h
index 5a56df1..3a18cd8 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -1,7 +1,7 @@
 #ifndef CUB3D_H
 #define CUB3D_H
 
-#include <inttypes.h>
+#include <stdint.h>
 #include <stddef.h>
 
 #ifndef FT_W_KEY
@@ -24,8 +24,9 @@ typedef struct		s_win
 {
 	void			*wlx;
 	void			*winptr;
-	int				x_size;
-	int				y_size;
+	uint8_t			inited;
+	uint16_t		x_size;
+	uint16_t		y_size;
 }					t_win;
 
 typedef struct		s_cub
@@ -50,7 +51,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);
 int					ft_select_get(char **words, t_cub *clist);
-int					ft_get_res(int fd, t_cub *clist);
+int					ft_get_res(char **words, t_cub *clist);
 int					ft_get_tex(int fd, t_cub *clist);
 int					ft_get_sprite_tex(int fd, t_cub *clist);
 int					ft_get_colors(int fd, t_cub *clist);
@@ -58,8 +59,8 @@ int					ft_get_map(int fd, t_cub *clist);
 void				ft_check_empty_line(int fd,
 										unsigned int linum,
 										t_cub *clist);
-void				ft_free_words(char **words, char *line);
-int					ft_map_error(unsigned int linum, t_cub *clist);
+void				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);
 void				ft_print_list(t_cub *clist);
-- 
cgit v1.2.3