diff options
Diffstat (limited to 'src/ft_init_bmp.c')
-rw-r--r-- | src/ft_init_bmp.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/ft_init_bmp.c b/src/ft_init_bmp.c index e3fab01..8e94eba 100644 --- a/src/ft_init_bmp.c +++ b/src/ft_init_bmp.c @@ -17,17 +17,22 @@ t_bmp_colors ft_init_bmp_colors(void) { - bmp_colors->red_mask = 0x00ff0000; - bmp_colors->green_mask = 0x0000ff00; - bmp_colors->blue_mask = 0x000000ff; - bmp_colors->alpha_mask = 0xff000000; - bmp_colors->color_space_type = 0x73524742; - ft_bzero(bmp_colors, 16); + t_bmp_colors bmp_colors; + + bmp_colors.red_mask = 0x00ff0000; + bmp_colors.green_mask = 0x0000ff00; + bmp_colors.blue_mask = 0x000000ff; + bmp_colors.alpha_mask = 0xff000000; + bmp_colors.color_space_type = 0x73524742; + ft_bzero(bmp_colors.unused, 16); + return (bmp_colors); } t_bmp_info ft_init_bmp_info(void) { + t_bmp_info bmp_info; + bmp_info.size = 0; bmp_info.width = 0; bmp_info.height = 0; @@ -39,14 +44,18 @@ t_bmp_info bmp_info.y_pixels_per_meter = 0; bmp_info.colors_used = 0; bmp_info.colors_important = 0; + return (bmp_info); } t_bmp_file ft_init_bmp(void) { + t_bmp_file bmp_file; + 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); } |