]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 26 Apr 2012 01:24:40 +0000 (01:24 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 26 Apr 2012 01:24:40 +0000 (01:24 +0000)
MagickWand/pixel-wand.c
coders/webp.c

index 7b8e5dadf941105aa3bdb39cf89deefcc108fa0c..65e1a704d95bb1ffd58b9d7cccc5d4564b9ab35d 100644 (file)
@@ -2132,7 +2132,7 @@ WandExport void PixelSetPixelColor(PixelWand *wand,const PixelInfo *color)
 %
 %  The format of the PixelSetQuantumPixel method is:
 %
-%      PixelSetQuantumPixel(const Image *image,const QixelPixel *pixel,
+%      void PixelSetQuantumPixel(const Image *image,const Quantum *pixel,
 %        PixelWand *wand)
 %
 %  A description of each parameter follows:
index ccd07e760332b325672582fc8ccbf58bba18beef..1867c27a7a43ec6b3984b72d6157e954c8cbc262 100644 (file)
@@ -374,8 +374,8 @@ static MagickBooleanType WriteWEBPImage(const ImageInfo *image_info,
       *q++=ScaleQuantumToChar(GetPixelRed(image,p));
       *q++=ScaleQuantumToChar(GetPixelGreen(image,p));
       *q++=ScaleQuantumToChar(GetPixelBlue(image,p));
-      *q++=ScaleQuantumToChar((Quantum) (image->matte != MagickFalse ?
-        GetPixelAlpha(image,p) : OpaqueAlpha));
+      if (image->matte != MagickFalse)
+        *q++=ScaleQuantumToChar(GetPixelAlpha(image,p));
       p+=GetPixelChannels(image);
     }
     status=SetImageProgress(image,SaveImageTag,(MagickOffsetType) y,