diff --git a/builds/draw.o b/builds/draw.o index f8d9556..ecfd7ec 100644 Binary files a/builds/draw.o and b/builds/draw.o differ diff --git a/builds/fdf.o b/builds/fdf.o index 73908f5..5a19fcc 100644 Binary files a/builds/fdf.o and b/builds/fdf.o differ diff --git a/builds/keypress.o b/builds/keypress.o index 5171fd1..a219cb5 100644 Binary files a/builds/keypress.o and b/builds/keypress.o differ diff --git a/builds/modifs.o b/builds/modifs.o index 57264be..a290763 100644 Binary files a/builds/modifs.o and b/builds/modifs.o differ diff --git a/builds/parse.o b/builds/parse.o index 0d3d5d4..4b84f23 100644 Binary files a/builds/parse.o and b/builds/parse.o differ diff --git a/fdf b/fdf index 2e6ef0d..76a2664 100755 Binary files a/fdf and b/fdf differ diff --git a/srcs/parse.c b/srcs/parse.c index 41d2aec..e613499 100644 --- a/srcs/parse.c +++ b/srcs/parse.c @@ -37,6 +37,18 @@ int **split_to_map(t_fdf *fdf, char *raw) return (map); } +int is_color(char *color) +{ + int i; + + i = 0; + if (!ft_strncmp(color, ",0x", 3)) + i += 3; + while (ft_isalnum(color[i])) + i++; + return (i); +} + int size_width(char *raw) { int i; @@ -51,6 +63,7 @@ int size_width(char *raw) i++; while (ft_isdigit(raw[i])) i++; + i += is_color(raw + i); j++; } return (j);