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