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:
Michael Natterer
2006-06-04 11:39:22 +00:00
committed by Michael Natterer
parent e286259048
commit 962282fe5f
2 changed files with 7 additions and 1 deletions

View File

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

View File

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