aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_winlx.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-01-29 23:21:16 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-01-29 23:21:16 +0100
commit3fe40e249fbad468347b2a0d643b19f1f5f3f524 (patch)
treef696e53265307a1b15b36c2d72bb6dfbd95a8885 /src/ft_init_winlx.c
parentit's wonderful (diff)
download42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.gz
42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.bz2
42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.xz
42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.zst
42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.zip
I've seen enough
Diffstat (limited to 'src/ft_init_winlx.c')
-rw-r--r--src/ft_init_winlx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/ft_init_winlx.c b/src/ft_init_winlx.c
index ff42e69..d45f19d 100644
--- a/src/ft_init_winlx.c
+++ b/src/ft_init_winlx.c
@@ -10,9 +10,6 @@ ft_init_winlx(t_cub *clist)
if (!(clist->wlist->wlx = mlx_init()))
return (-1);
ft_memdel(clist->wlist->winptr);
- if (!(clist->wlist->winptr = malloc(clist->wlist->x_size
- * clist->wlist->y_size)))
- return (-1);
if (!(clist->wlist->winptr = mlx_new_window(clist->wlist->wlx,
clist->wlist->x_size, clist->wlist->y_size, "Cub3D")))
return (-1);