aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-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);
}