diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 16:43:11 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 16:43:11 +0100 |
commit | 6cb1abce1e514d6446511c1a038dbee4f4301cf7 (patch) | |
tree | 250b8bdc0e91394ae751752ae1400c656b2abeb4 /src/ft_save_to_bmp.c | |
parent | Compiles (diff) | |
download | 42-cub3d-6cb1abce1e514d6446511c1a038dbee4f4301cf7.tar.gz 42-cub3d-6cb1abce1e514d6446511c1a038dbee4f4301cf7.tar.bz2 42-cub3d-6cb1abce1e514d6446511c1a038dbee4f4301cf7.tar.xz 42-cub3d-6cb1abce1e514d6446511c1a038dbee4f4301cf7.tar.zst 42-cub3d-6cb1abce1e514d6446511c1a038dbee4f4301cf7.zip |
defines
Diffstat (limited to 'src/ft_save_to_bmp.c')
-rw-r--r-- | src/ft_save_to_bmp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_save_to_bmp.c b/src/ft_save_to_bmp.c index d751ea0..b570307 100644 --- a/src/ft_save_to_bmp.c +++ b/src/ft_save_to_bmp.c @@ -18,15 +18,15 @@ static int8_t ft_convert_image_to_bmp(t_bmp_file bmp_file, void *img, t_cub *cl) { - int32_t filelen; - uint8_t *bmp; + /* int32_t filelen; */ + /* uint8_t *bmp; */ - (void)img; - (void)bmp_file; - filelen = 54 + 3 * cl->wlist.x_size * cl->wlist.y_size; - if (!(bmp = (uint8_t*)malloc((filelen - 54) * sizeof(uint8_t)))) - return (-1); - ft_memdel((void**)&bmp); + /* (void)img; */ + /* (void)bmp_file; */ + /* filelen = 54 + 3 * cl->wlist.x_size * cl->wlist.y_size; */ + /* if (!(bmp = (uint8_t*)malloc((filelen - 54) * sizeof(uint8_t)))) */ + /* return (-1); */ + /* ft_memdel((void**)&bmp); */ return (0); } |