From: cristy Date: Thu, 26 Apr 2012 01:24:40 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5719 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d7e3bacbd8f25ae6b9dcfb8c898bc795e58a492;p=imagemagick --- diff --git a/MagickWand/pixel-wand.c b/MagickWand/pixel-wand.c index 7b8e5dadf..65e1a704d 100644 --- a/MagickWand/pixel-wand.c +++ b/MagickWand/pixel-wand.c @@ -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: diff --git a/coders/webp.c b/coders/webp.c index ccd07e760..1867c27a7 100644 --- a/coders/webp.c +++ b/coders/webp.c @@ -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,