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).
This commit is contained in:
Pedro Gimeno 2004-02-07 10:28:51 +00:00 committed by Pedro Gimeno Fortea
parent e0c57f95c8
commit 03182af846
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,12 @@
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

View File

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