aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_scene.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 16:24:10 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 16:24:10 +0100
commit93e9d655f14a89477e495aece6d91b07594076d8 (patch)
treee75e792139891fb6007cef8e68cd7f022672c2c0 /src/ft_draw_scene.c
parentTab (diff)
download42-cub3d-93e9d655f14a89477e495aece6d91b07594076d8.tar.gz
42-cub3d-93e9d655f14a89477e495aece6d91b07594076d8.tar.bz2
42-cub3d-93e9d655f14a89477e495aece6d91b07594076d8.tar.xz
42-cub3d-93e9d655f14a89477e495aece6d91b07594076d8.tar.zst
42-cub3d-93e9d655f14a89477e495aece6d91b07594076d8.zip
Structs inited
Diffstat (limited to '')
-rw-r--r--src/ft_draw_scene.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c
index 9dcc8df..846c2fb 100644
--- a/src/ft_draw_scene.c
+++ b/src/ft_draw_scene.c
@@ -33,15 +33,15 @@ void
void
ft_draw_scene_bmp(t_cub *clist)
{
- t_bmp bmp;
+ 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);
- bmp = ft_init_bmp();
- if (ft_save_to_bmp(bmp, clist->img.img, clist) < 0)
- ft_error(FT_ERR_WR_BMP, clist);
+ ft_init_bmp(&bmp_file);
+ if (ft_save_to_bmp(&bmp_file, 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);
}