From dada4b12f07388262729a1b979e53e28bfb79db3 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 23 Jan 2020 18:46:55 +0100 Subject: Nice squares --- src/main.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/main.c') 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); } -- cgit v1.2.3