/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_key_loop.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/17 20:06:26 by rbousset #+# #+# */ /* Updated: 2020/02/17 20:06:29 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include #include #include #include void ft_del_extra_sprites(t_cub *cl) { uint8_t i; i = 1; while ((i + 2) <= cl->mlist.topsp) { if (cl->tlist[i + 9].img) mlx_destroy_image(cl->wlist.wlx, cl->tlist[i + 9].img); i++; } }