diff options
Diffstat (limited to 'src/ft_init_winlx.c')
-rw-r--r-- | src/ft_init_winlx.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/ft_init_winlx.c b/src/ft_init_winlx.c index 5706685..b9c714e 100644 --- a/src/ft_init_winlx.c +++ b/src/ft_init_winlx.c @@ -1,10 +1,23 @@ +/* ************************************************************************** */ +/* LE - / */ +/* / */ +/* ft_init_winlx.c .:: .:/ . .:: */ +/* +:+:+ +: +: +:+:+ */ +/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */ +/* #+# #+ #+ #+# */ +/* Created: 2020/02/02 17:19:29 by rbousset #+# ## ## #+# */ +/* Updated: 2020/02/02 17:19:29 by rbousset ### #+. /#+ ###.fr */ +/* / */ +/* / */ +/* ************************************************************************** */ + #include <libft.h> #include <mlx.h> #include <cub3d.h> #include <stdlib.h> int -ft_init_winlx(t_cub *clist) + ft_init_winlx(t_cub *clist) { ft_memdel((void**)&clist->wlist->wlx); if (!(clist->wlist->wlx = mlx_init())) @@ -15,6 +28,6 @@ ft_init_winlx(t_cub *clist) return (-1); clist->wlist->inited = 1; ft_printf("Created window of size %dx%d\n", - clist->wlist->x_size, clist->wlist->y_size); + clist->wlist->x_size, clist->wlist->y_size); return (0); } |