Fix: fix hole detection, fix norme mlx_struct.h + load_texture.c + error.c

This commit is contained in:
Baptiste Goulard coderc de lacam 2024-12-20 15:04:48 +01:00
parent 6b11930534
commit c120ee5a5f
9 changed files with 17 additions and 74 deletions

View file

@ -6,7 +6,7 @@
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/01 17:46:52 by bgoulard #+# #+# */
/* Updated: 2024/12/20 13:24:17 by bgoulard ### ########.fr */
/* Updated: 2024/12/20 14:47:18 by bgoulard ### ########.fr */
/* */
/* ************************************************************************** */
@ -20,7 +20,7 @@
#include <stdbool.h>
#include <stdio.h>
static bool no_leaks(t_info *inf, t_texture *texture, enum e_error error)
static bool no_leaks(t_info *inf, t_texture *texture, enum e_error error)
{
if (texture->img != NULL)
mlx_destroy_image(inf->mlx_ptr, texture->img);