diff options
author | corvid <devnull@localhost> | 2014-12-21 21:27:57 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2014-12-21 21:27:57 +0000 |
commit | a614ea631d34d5c6273bfdaeea6a79ce2eb366a1 (patch) | |
tree | f0cc568eadbc5b50c53ea9489f30c23e0f3960fb /src/colors.c | |
parent | 5eb74aa36fd7d0448ac740c2a35fd6d485c27aba (diff) |
more (and indentation in one spot)
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 fe3598eb..237e63a1 100644 --- a/src/colors.c +++ b/src/colors.c @@ -303,7 +303,7 @@ int32_t a_Color_parse (const char *str, int32_t default_color, int *err) static int Color_distance(long c1, long c2) { return (labs((c1 & 0x0000ff) - (c2 & 0x0000ff)) + - labs(((c1 & 0x00ff00) - (c2 & 0x00ff00)) >> 8) + + labs(((c1 & 0x00ff00) - (c2 & 0x00ff00)) >> 8) + labs(((c1 & 0xff0000) - (c2 & 0xff0000)) >> 16)) / 75; } #endif |