From 0f28f7ff2cde81445ad10e98b5219a3f87e1e648 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 8 Dec 2014 16:47:44 +0000 Subject: [PATCH] --- coders/bmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/bmp.c b/coders/bmp.c index 7bfd065b8..bb48b4fd5 100644 --- a/coders/bmp.c +++ b/coders/bmp.c @@ -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); } -- 2.40.0