diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-05 00:13:59 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-05 00:13:59 +0100 |
commit | b289c06d95448027a55f5bf788bbfe8f6d8e2a24 (patch) | |
tree | f626824669c4a5743aafcc02a487c67a4c10a581 /src/ft_draw_scene.c | |
parent | Nice bmp (diff) | |
download | 42-cub3d-b289c06d95448027a55f5bf788bbfe8f6d8e2a24.tar.gz 42-cub3d-b289c06d95448027a55f5bf788bbfe8f6d8e2a24.tar.bz2 42-cub3d-b289c06d95448027a55f5bf788bbfe8f6d8e2a24.tar.xz 42-cub3d-b289c06d95448027a55f5bf788bbfe8f6d8e2a24.tar.zst 42-cub3d-b289c06d95448027a55f5bf788bbfe8f6d8e2a24.zip |
it's all black
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_scene.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c index 9461eef..79124f4 100644 --- a/src/ft_draw_scene.c +++ b/src/ft_draw_scene.c @@ -25,6 +25,8 @@ void ft_castray(clist); if (clist->ishud) ft_draw_hud(clist); + if (ft_save_to_bmp(clist) < 0) + ft_error(FT_RET_BMP_ERR, FT_ERR_WR_BMP, clist); mlx_put_image_to_window(clist->wlist.wlx, clist->wlist.winptr, clist->img.img, 0, 0); mlx_destroy_image(clist->wlist.wlx, clist->img.img); @@ -38,7 +40,5 @@ void clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp, &clist->img.sizeline, &clist->img.endian); ft_castray(clist); - if (ft_save_to_bmp(clist) < 0) - ft_error(FT_RET_BMP_ERR, FT_ERR_WR_BMP, clist); mlx_destroy_image(clist->wlist.wlx, clist->img.img); } |