Commit 03182af8 authored by Pedro Gimeno's avatar Pedro Gimeno Committed by Pedro Gimeno Fortea

Corrected position for alpha_pix in the case of grayscale images with

2004-02-07  Pedro Gimeno  <pggimeno@wanadoo.es>

	* app/core/gimpimage-convert.c (median_cut_pass2_no_dither_rgb):
	Corrected position for alpha_pix in the case of grayscale images
	with custom or mono palette and no dither. Fixes bug #133642.

	(median_cut_pass2_fixed_dither_rgb): Ditto for fixed dither
	(Positioned Color Dither).
parent e0c57f95
2004-02-07 Pedro Gimeno <pggimeno@wanadoo.es>
* app/core/gimpimage-convert.c (median_cut_pass2_no_dither_rgb):
Corrected position for alpha_pix in the case of grayscale images
with custom or mono palette and no dither. Fixes bug #133642.
(median_cut_pass2_fixed_dither_rgb): Ditto for fixed dither
(Positioned Color Dither).
2004-02-07 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-draw.c
......@@ -3047,7 +3047,10 @@ median_cut_pass2_no_dither_rgb (QuantizeObj *quantobj,
* grayscale drawables through the rgb pass2 functions
*/
if (gimp_drawable_is_gray (GIMP_DRAWABLE (layer)))
red_pix = green_pix = blue_pix = GRAY_PIX;
{
red_pix = green_pix = blue_pix = GRAY_PIX;
alpha_pix = ALPHA_G_PIX;
}
has_alpha = gimp_drawable_has_alpha (GIMP_DRAWABLE (layer));
......@@ -3136,7 +3139,10 @@ median_cut_pass2_fixed_dither_rgb (QuantizeObj *quantobj,
* grayscale drawables through the rgb pass2 functions
*/
if (gimp_drawable_is_gray (GIMP_DRAWABLE (layer)))
red_pix = green_pix = blue_pix = GRAY_PIX;
{
red_pix = green_pix = blue_pix = GRAY_PIX;
alpha_pix = ALPHA_G_PIX;
}
has_alpha = gimp_drawable_has_alpha (GIMP_DRAWABLE (layer));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment