removed calls to ROUND() in two places where they should not have been

2003-06-21  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimpcolorspace.c (gimp_hsv_to_rgb_int): removed
	calls to ROUND() in two places where they should not have been
	added. Fixes bug #115626.
This commit is contained in:
Sven Neumann 2003-06-20 22:12:18 +00:00 committed by Sven Neumann
parent 86c1870f00
commit f32424aac5
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-06-21 Sven Neumann <sven@gimp.org>
* libgimpcolor/gimpcolorspace.c (gimp_hsv_to_rgb_int): removed
calls to ROUND() in two places where they should not have been
added. Fixes bug #115626.
2003-06-20 Dave Neary <bolsh@gimp.org>
* app/config/gimpdisplayconfig.c: Enable menus on

View File

@ -446,12 +446,12 @@ gimp_hsv_to_rgb_int (gint *hue,
s = *saturation / 255.0;
v = *value / 255.0;
f = h - ROUND (h);
f = h - (gint) h;
p = v * (1.0 - s);
q = v * (1.0 - (s * f));
t = v * (1.0 - (s * (1.0 - f)));
switch (ROUND (h))
switch ((gint) h)
{
case 0:
*hue = ROUND (v * 255.0);