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
This commit is contained in:
rephorm 2006-08-08 06:01:37 +00:00 committed by rephorm
parent b2c767b5ab
commit a9ff065c01
1 changed files with 1 additions and 1 deletions

View File

@ -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;