From 8e0117484d250312f397c3052490b360f0a020c9 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 15 May 2018 22:05:00 +0200 Subject: [PATCH] Remove set_opaque because we no longer support a mask. --- MagickCore/image.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/MagickCore/image.c b/MagickCore/image.c index 6a8327084..837c087c8 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -2318,7 +2318,6 @@ MagickExport MagickBooleanType SetImageAlpha(Image *image,const Quantum alpha, *image_view; MagickBooleanType - set_opaque, status; ssize_t @@ -2328,8 +2327,6 @@ MagickExport MagickBooleanType SetImageAlpha(Image *image,const Quantum alpha, if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); assert(image->signature == MagickCoreSignature); - set_opaque=(image->alpha_trait == UndefinedPixelTrait) ? MagickTrue : - MagickFalse; image->alpha_trait=BlendPixelTrait; status=MagickTrue; image_view=AcquireAuthenticCacheView(image,exception); @@ -2355,10 +2352,7 @@ MagickExport MagickBooleanType SetImageAlpha(Image *image,const Quantum alpha, } for (x=0; x < (ssize_t) image->columns; x++) { - if (set_opaque != MagickFalse) - SetPixelAlpha(image,OpaqueAlpha,q); - else - SetPixelAlpha(image,alpha,q); + SetPixelAlpha(image,alpha,q); q+=GetPixelChannels(image); } if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse) -- 2.40.0