summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLaslo Hunhold <dev@frign.de>2017-04-14 22:26:03 +0200
committerLaslo Hunhold <dev@frign.de>2017-04-14 22:26:03 +0200
commit4aa840bd871694cca0ae1608eab1086eef7d228b (patch)
tree0f39f31503883cd78a19309bb4b6ed19f255e698 /util.c
parenta5a5706f16408ce181775d319b264d03e67819f3 (diff)
Remove the need of '#' for alpha masks
To be honest, it can happen too easily that the user forgets to put the colour in quotation marks, yielding in the rest of the pipeline to be discarded as a comment.
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/util.c b/util.c
index ea933ca..ba139b4 100644
--- a/util.c
+++ b/util.c
@@ -57,10 +57,6 @@ parse_mask(const char *s, uint16_t mask[3])
unsigned int col[3], colfac;
char fmt[] = "%#x%#x%#x";
- if ((s++)[0] != '#') {
- return 1;
- }
-
slen = strlen(s);
if (slen != 3 && slen != 6 && slen != 12) {
return 1;