From a9ff065c017939e30ffc4ee0361437e5ad17c828 Mon Sep 17 00:00:00 2001 From: rephorm Date: Tue, 8 Aug 2006 06:01:37 +0000 Subject: [PATCH] i assume this was meant as an optimization. however, it wasn't correct for some cases (e.g. rgb = 187, 169, 123) SVN revision: 24465 --- legacy/evas/src/lib/engines/common/evas_convert_color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/evas/src/lib/engines/common/evas_convert_color.c b/legacy/evas/src/lib/engines/common/evas_convert_color.c index a817f6765e..eeec057a83 100644 --- a/legacy/evas/src/lib/engines/common/evas_convert_color.c +++ b/legacy/evas/src/lib/engines/common/evas_convert_color.c @@ -69,7 +69,7 @@ evas_common_convert_rgb_to_hsv(int r, int g, int b, float *h, float *s, float *v d = max - min; if (v) *v = (max / 255.0); - if (!(max & d)) + if (!max) { if (s) *s = 0; if (h) *h = 0;