diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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); } |