* Fix hsv-->rgb conversion if h=360.0

SVN revision: 22677
This commit is contained in:
moom 2006-05-17 22:11:46 +00:00 committed by moom
parent f8371169c7
commit 24b32bd7d4
1 changed files with 2 additions and 0 deletions

View File

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