]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 14 Jan 2015 23:55:59 +0000 (23:55 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 14 Jan 2015 23:55:59 +0000 (23:55 +0000)
MagickCore/composite.c

index abea2490a0ea86d06274e4421343770fb185e3e4..d205f4e95b537f40ab08d70e9ad5b639e195d644 100644 (file)
@@ -930,13 +930,13 @@ if (0)
       const char
         *value;
 
-      PixelInfo
-        pixel;
-
       MagickRealType
         horizontal_scale,
         vertical_scale;
 
+      PixelInfo
+        pixel;
+
       PointInfo
         center,
         offset;
@@ -1079,8 +1079,8 @@ if (0)
           /*
             Mask with the 'invalid pixel mask' in alpha channel.
           */
-          pixel.alpha=(MagickRealType) QuantumRange*(1.0-(1.0-QuantumScale*
-            pixel.alpha)*(1.0-QuantumScale*GetPixelAlpha(source_image,p)));
+          pixel.alpha=(MagickRealType) QuantumRange*(QuantumScale*pixel.alpha)*
+            (QuantumScale*GetPixelAlpha(source_image,p));
           SetPixelViaPixelInfo(canvas_image,&pixel,q);
           p+=GetPixelChannels(source_image);
           q+=GetPixelChannels(canvas_image);