]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 5 Jun 2011 00:05:37 +0000 (00:05 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 5 Jun 2011 00:05:37 +0000 (00:05 +0000)
magick/composite-private.h

index 6a4e09a427ed597ad8e3d631404efd0d60b4d6ab..9e7f3141b56f787b19b18b992f8d35084c06cc2c 100644 (file)
@@ -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;