diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 15:21:10 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 15:21:10 +0100 |
commit | 5db7c4f7d445373d92c41a7cc9aa667e223e5507 (patch) | |
tree | 1dff7a6452ad593cf0c7f92d7db35580fb619d94 /src/ft_draw_scene.c | |
parent | Removed map print (diff) | |
download | 42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.tar.gz 42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.tar.bz2 42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.tar.xz 42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.tar.zst 42-cub3d-5db7c4f7d445373d92c41a7cc9aa667e223e5507.zip |
tryna save
Diffstat (limited to 'src/ft_draw_scene.c')
-rw-r--r-- | src/ft_draw_scene.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c index 1e16ba5..78a56b4 100644 --- a/src/ft_draw_scene.c +++ b/src/ft_draw_scene.c @@ -38,6 +38,7 @@ void clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp, &clist->img.sizeline, &clist->img.endian); ft_castray(clist); - ft_save_to_bmp(); + if (ft_save_to_bmp(clist->img.img, clist) < 0) + ft_error(FT_ERR_WR_BMP, clist); mlx_destroy_image(clist->wlist.wlx, clist->img.img); } |