From 775b9587090c21cf0e2e96e9fbcc5cc01263b4dc Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 5 Jun 2011 00:05:37 +0000 Subject: [PATCH] --- magick/composite-private.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/magick/composite-private.h b/magick/composite-private.h index 6a4e09a42..9e7f3141b 100644 --- a/magick/composite-private.h +++ b/magick/composite-private.h @@ -52,10 +52,9 @@ static inline void MagickCompositeOver(const PixelPacket *p, /* Compose pixel p over pixel q with the given opacities. */ - if (alpha == TransparentOpacity) + if (alpha == OpaqueOpacity) { - if (composite != q) - *composite=(*q); + *composite=(*q); return; } gamma=1.0-QuantumScale*QuantumScale*alpha*beta; -- 2.40.0