]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 28 Mar 2011 16:25:23 +0000 (16:25 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 28 Mar 2011 16:25:23 +0000 (16:25 +0000)
magick/pixel.c

index b952c12d4feda7701e95b46278adf53b7e30b552..9e7d1c3373f557bfc060928d9da8fbd0eabdfcac 100644 (file)
@@ -3425,6 +3425,7 @@ static inline void AlphaBlendMagickPixelPacket(const Image *image,
       pixel->green=(MagickRealType) color->green;
       pixel->blue=(MagickRealType) color->blue;
       pixel->opacity=(MagickRealType) color->opacity;
+      pixel->index=0.0;
       if (((image->colorspace == CMYKColorspace) ||
            (image->storage_class == PseudoClass)) &&
           (index != (const IndexPacket *) NULL))
@@ -3436,6 +3437,7 @@ static inline void AlphaBlendMagickPixelPacket(const Image *image,
   pixel->green=(MagickRealType) (*alpha*color->green);
   pixel->blue=(MagickRealType) (*alpha*color->blue);
   pixel->opacity=(MagickRealType) (*alpha*color->opacity);
+  pixel->index=0.0;
   if (((image->colorspace == CMYKColorspace) ||
        (image->storage_class == PseudoClass)) &&
       (index != (const IndexPacket *) NULL))