From 40108b83398240f50c6045bfb2bf114bded43c72 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 9 Mar 2020 02:11:22 +0100 Subject: Reparse, may not compile --- src/ft_get_colors.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_get_colors.c') diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c index 69eb8f8..47b8265 100644 --- a/src/ft_get_colors.c +++ b/src/ft_get_colors.c @@ -74,6 +74,8 @@ int8_t ft_sprintf(clist->errmsg, FT_ERR_ARGS); return (-1); } + if (!ft_check_ext(words[1], ".xpm")) + return (ft_get_f_tex(words, clist)) if (!(num = ft_split(words[1], ','))) { ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE); -- cgit v1.2.3