diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 16:03:30 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-04 16:03:30 +0100 |
commit | dea9844db4bf893525d692209d004968e4bf89ad (patch) | |
tree | 5a7547d2adddfcd2c1c15a8e1db6c86344b46640 /src/ft_init_bmp.c | |
parent | Init bmp (diff) | |
download | 42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.gz 42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.bz2 42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.xz 42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.tar.zst 42-cub3d-dea9844db4bf893525d692209d004968e4bf89ad.zip |
Tab
Diffstat (limited to 'src/ft_init_bmp.c')
-rw-r--r-- | src/ft_init_bmp.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ft_init_bmp.c b/src/ft_init_bmp.c index cc8d59b..3236e2f 100644 --- a/src/ft_init_bmp.c +++ b/src/ft_init_bmp.c @@ -13,15 +13,15 @@ #include <cub3d.h> #include <stdint.h> -t_bmp - ft_init_bmp(void) +int8_t + ft_init_bmp(t_bmp_file *bmp_file) { - t_bmp bmp; + t_bmp_file bmp_file; - bmp.file_type = 0x4d42; - bmp.file_size = 0; - bmp.reserv_one = 0; - bmp.reserv_two = 0; - bmp.offset_data = 0; - return (bmp); + bmp_file.file_type = 0x4d42; + bmp_file.file_size = 0; + bmp_file.reserv_one = 0; + bmp_file.reserv_two = 0; + bmp_file.offset_data = 0; + return (bmp_file); } |