forked from enlightenment/efl
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:
parent
b2c767b5ab
commit
a9ff065c01
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue