mirror of https://github.com/GNOME/gimp.git
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:
parent
86c1870f00
commit
f32424aac5
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue