diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 15:51:57 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 15:51:57 +0100 |
commit | 68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf (patch) | |
tree | 34ce97a1024b3655d9a305e9e92b0e97a56d4f17 /src | |
parent | Renamed minilibx to mlx (diff) | |
download | 42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.tar.gz 42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.tar.bz2 42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.tar.xz 42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.tar.zst 42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.zip |
Trying to close
Diffstat (limited to 'src')
-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); } |