diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-01 18:05:01 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-01 18:05:01 +0100 |
commit | b348116e2d6f072c528f0e04e00037681a40ca71 (patch) | |
tree | 6e1680c2a2784268442b4bdaf20e35b48e0f0e7b /src/colors.c | |
parent | 887946bff8e11953194e4792e07e34f0c3361422 (diff) |
allow 3 digit hex color definitions
Diffstat (limited to 'src/colors.c')
-rw-r--r-- | src/colors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/colors.c b/src/colors.c index 9a4c8c8e..f293249d 100644 --- a/src/colors.c +++ b/src/colors.c @@ -217,7 +217,7 @@ static int32_t Color_parse_hex (const char *s, int32_t default_color, int *err) *err = 1; ret_color = strtol(s, &tail, 16); - if (tail - s == 6) + if (tail - s == 6 || tail - s == 3) *err = 0; else ret_color = default_color; |