aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_winlx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_winlx.c')
-rw-r--r--src/ft_init_winlx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_init_winlx.c b/src/ft_init_winlx.c
index 931e19b..ff42e69 100644
--- a/src/ft_init_winlx.c
+++ b/src/ft_init_winlx.c
@@ -16,6 +16,7 @@ ft_init_winlx(t_cub *clist)
if (!(clist->wlist->winptr = mlx_new_window(clist->wlist->wlx,
clist->wlist->x_size, clist->wlist->y_size, "Cub3D")))
return (-1);
+ clist->wlist->inited = 1;
ft_printf("Created window of size %dx%d\n",
clist->wlist->x_size, clist->wlist->y_size);
return (0);