forked from enlightenment/efl
* Fix hsv-->rgb conversion if h=360.0
SVN revision: 22677
This commit is contained in:
parent
f8371169c7
commit
24b32bd7d4
|
@ -779,6 +779,7 @@ evas_common_convert_hsv_to_rgb(float h, float s, float v, int *r, int *g, int *b
|
|||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
case 6:
|
||||
if (r) *r = v;
|
||||
if (g) *g = t;
|
||||
if (b) *b = p;
|
||||
|
@ -862,6 +863,7 @@ evas_common_convert_hsv_to_rgb_int(int h, int s, int v, int *r, int *g, int *b)
|
|||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
case 6:
|
||||
*r = v; *g = t; *b = p;
|
||||
return;
|
||||
case 1:
|
||||
|
|
Loading…
Reference in New Issue