diff options
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); } |