aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 18:46:55 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 18:46:55 +0100
commitdada4b12f07388262729a1b979e53e28bfb79db3 (patch)
tree4231057b3a7fc3fc2f4e100f9e188949df146023 /src/main.c
parentPretty fine (diff)
download42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.tar.gz
42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.tar.bz2
42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.tar.xz
42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.tar.zst
42-cub3d-dada4b12f07388262729a1b979e53e28bfb79db3.zip
Nice squares
Diffstat (limited to '')
-rw-r--r--src/main.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 05cab80..c7fbc58 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,16 +6,14 @@
int
main(void)
{
- t_winlist *wlist;
- t_cublist *clist;
+ t_win *wlist;
+ t_cub *clist;
- wlist = ft_init_winlist();
- clist = ft_init_cublist();
+ wlist = ft_init_win();
+ clist = ft_init_cub();
mlx_key_hook(wlist->winptr, ft_key_event, wlist);
+ ft_drawsquare(wlist, 80, 80);
mlx_loop(wlist->wlx);
- ft_memdel(wlist->wlx);
- ft_memdel(wlist->winptr);
- ft_memdel(wlist);
ft_memdel(clist);
return (0);
}