forked from enlightenment/efl
parent
e17e1e8bb9
commit
a3fdd2ab4e
|
@ -127,7 +127,7 @@ evas_common_convert_color_rgb_to_hsv(int r, int g, int b, float *h, float *s, fl
|
|||
d = max - min;
|
||||
|
||||
if (v) *v = (max / 255.0);
|
||||
if (!max)
|
||||
if (!max || !d)
|
||||
{
|
||||
if (s) *s = 0;
|
||||
if (h) *h = 0;
|
||||
|
|
Loading…
Reference in New Issue