]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 8 Dec 2014 16:47:44 +0000 (16:47 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 8 Dec 2014 16:47:44 +0000 (16:47 +0000)
coders/bmp.c

index 7bfd065b80a5c4bcfacdcedcc23d6217dd2ce169..bb48b4fd5fad4ceb9f1f3a81102c40d658c66c75 100644 (file)
@@ -1288,9 +1288,9 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
             SetPixelRed(image,ScaleShortToQuantum((unsigned short) red),q);
             SetPixelGreen(image,ScaleShortToQuantum((unsigned short) green),q);
             SetPixelBlue(image,ScaleShortToQuantum((unsigned short) blue),q);
-            SetPixelAlpha(image,OpaqueAlpha,q);
+            SetPixelOpacity(image,OpaqueAlpha,q);
             if (image->alpha_trait == BlendPixelTrait)
-              SetPixelAlpha(image,ScaleShortToQuantum((unsigned short)
+              SetPixelOpacity(image,ScaleShortToQuantum((unsigned short)
                 opacity),q);
             q+=GetPixelChannels(image);
           }