diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 16:32:31 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 16:32:31 +0100 |
commit | 7970e427f46a4d40f4b367c3d722a94352c533b3 (patch) | |
tree | 9268d062a3b9dbb5f81bdef72268c91e76e367d9 /src/ft_draw_scene.c | |
parent | Structs inited (diff) | |
download | 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.tar.gz 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.tar.bz2 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.tar.xz 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.tar.zst 42-cub3d-7970e427f46a4d40f4b367c3d722a94352c533b3.zip |
More tab
Diffstat (limited to 'src/ft_draw_scene.c')
-rw-r--r-- | src/ft_draw_scene.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c index 846c2fb..cbe002f 100644 --- a/src/ft_draw_scene.c +++ b/src/ft_draw_scene.c @@ -33,15 +33,12 @@ void void ft_draw_scene_bmp(t_cub *clist) { - t_bmp_file bmp_file; - clist->img.img = mlx_new_image(clist->wlist.wlx, clist->wlist.x_size, clist->wlist.y_size); clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp, &clist->img.sizeline, &clist->img.endian); ft_castray(clist); - ft_init_bmp(&bmp_file); - if (ft_save_to_bmp(&bmp_file, clist->img.img, clist) < 0) + if (ft_save_to_bmp(clist->img.img, clist) < 0) ft_error(FT_RET_BMP_ERR, FT_ERR_WR_BMP, clist); mlx_destroy_image(clist->wlist.wlx, clist->img.img); } |