diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,14 +2,17 @@ #include <mlx.h> #include <stdlib.h> -int main(void) { +int + main(void) +{ void *win; void *winptr; win = mlx_init(); winptr = (void*)malloc(800 * 600); winptr = mlx_new_window(win, 800, 600, "Cub3d"); - free(win); + mlx_loop(win); free(winptr); + free(win); return (0); } |