use gimp_rgba_distance() instead of gimp_rgb_distance(), so alpha changes
2006-06-04 Michael Natterer <mitch@gimp.org> * app/widgets/gimpcolorframe.c (gimp_color_frame_set_color): use gimp_rgba_distance() instead of gimp_rgb_distance(), so alpha changes update the color frame too.
This commit is contained in:

committed by
Michael Natterer

parent
e286259048
commit
962282fe5f
@ -1,3 +1,9 @@
|
||||
2006-06-04 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpcolorframe.c (gimp_color_frame_set_color): use
|
||||
gimp_rgba_distance() instead of gimp_rgb_distance(), so alpha
|
||||
changes update the color frame too.
|
||||
|
||||
2006-06-03 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpimage.[ch]: renamed
|
||||
|
@ -340,7 +340,7 @@ gimp_color_frame_set_color (GimpColorFrame *frame,
|
||||
if (frame->sample_valid &&
|
||||
frame->sample_type == sample_type &&
|
||||
frame->color_index == color_index &&
|
||||
gimp_rgb_distance (&frame->color, color) < 0.0001)
|
||||
gimp_rgba_distance (&frame->color, color) < 0.0001)
|
||||
{
|
||||
frame->color = *color;
|
||||
return;
|
||||
|
Reference in New Issue
Block a user