]> granicus.if.org Git - imagemagick/commitdiff
The -composite option with mask is a 3 step operation, only use offset once
authorCristy <urban-warrior@imagemagick.org>
Sun, 30 Aug 2015 20:40:35 +0000 (16:40 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 30 Aug 2015 20:40:35 +0000 (16:40 -0400)
MagickCore/nt-base.h
MagickWand/mogrify.c
MagickWand/operation.c
tests/validate.h

index e23f5cb6b5481b8b543a30b1faaaba0ff80c4c5c..9eeaa416d2f419f49f4c15b5992034a789316a48 100644 (file)
@@ -102,13 +102,15 @@ extern "C" {
 #endif
 #if !defined(fseek) && !defined(__MINGW32__) && !defined(__MINGW64__)
 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
-  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && (__MSVCRT_VERSION__ < 0x800)
+  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
+  !(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
 #  define fseek  _fseeki64
 #endif
 #endif
 #if !defined(fstat) && !defined(__BORLANDC__)
 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
-  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && (__MSVCRT_VERSION__ < 0x800)
+  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
+  !(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
 #  define fstat  _fstati64
 #else
 #  define fstat  _fstat
@@ -119,7 +121,8 @@ extern "C" {
 #endif
 #if !defined(ftell) && !defined(__MINGW32__) && !defined(__MINGW64__)
 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
-  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && (__MSVCRT_VERSION__ < 0x800)
+  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
+  !(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
 #  define ftell  _ftelli64
 #endif
 #endif
@@ -145,7 +148,8 @@ extern "C" {
 #define locale_t _locale_t
 #endif
 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
-  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && (__MSVCRT_VERSION__ < 0x800)
+  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
+  !(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
 #if !defined(lseek)
 #  define lseek  _lseeki64
 #endif
@@ -225,7 +229,8 @@ extern "C" {
 #endif
 #if !defined(stat) && !defined(__BORLANDC__)
 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
-  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && (__MSVCRT_VERSION__ < 0x800)
+  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
+  !(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
 #  define stat  _stati64
 #else
 #  define stat  _stat
@@ -241,7 +246,8 @@ extern "C" {
 #  define sysconf(name)  NTSystemConfiguration(name)
 #endif
 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
-  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && (__MSVCRT_VERSION__ < 0x800)
+  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
+  !(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
 #  define tell  _telli64
 #else
 #  define tell  _tell
@@ -274,7 +280,8 @@ extern "C" {
 #endif
 #if !defined(wstat) && !defined(__BORLANDC__)
 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(Windows95) && \
-  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && (__MSVCRT_VERSION__ < 0x800)
+  !(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
+  !(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
 #  define wstat  _wstati64
 #else
 #  define wstat  _wstat
index f94a01ad0b0610bcd02c60b6298a68f8d8b3f369..4790c7bb19d33f4984b5b1ba71dae7811b6e13ac 100644 (file)
@@ -7926,7 +7926,7 @@ WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info,
                     status&=CompositeImage(image,mask_image,
                       CopyAlphaCompositeOp,MagickTrue,0,0,exception);
                     status&=CompositeImage(clone_image,image,OverCompositeOp,
-                      clip_to_self,geometry.x,geometry.y,exception);
+                      clip_to_self,0,0,exception);
                     image=DestroyImage(image);
                     image=clone_image;
                   }
index e2174a8fc1c2b86d7cd25ab1490ffaf0966e3e45..1e2bcaa746f54247ae148bb75fbdb7640cd4aa6e 100644 (file)
@@ -3886,7 +3886,7 @@ WandPrivate MagickBooleanType CLIListOperatorImages(MagickCLI *cli_wand,
                   status&=CompositeImage(new_images,mask_image,
                     CopyAlphaCompositeOp,MagickTrue,0,0,_exception);
                   status&=CompositeImage(clone_image,new_images,OverCompositeOp,
-                    clip_to_self,geometry.x,geometry.y,_exception);
+                    clip_to_self,0,0,_exception);
                   new_images=DestroyImage(new_images);
                   new_images=clone_image;
                 }
index 707fe53ceafcb468caa73ce0fa2db265ab7bd9bd..4e7d90560eb2e5f12de7c13e8979ba2075275115 100644 (file)
@@ -239,6 +239,8 @@ static const struct ReferenceFormats
     { "ART", UndefinedCompression, 0.0 },
     { "AVS", UndefinedCompression, 0.0 },
     { "BMP", UndefinedCompression, 0.0 },
+    { "BMP2", UndefinedCompression, 0.0 },
+    { "BMP3", UndefinedCompression, 0.0 },
     { "CIN", UndefinedCompression, 0.0 },
     { "CMYK", UndefinedCompression, 0.0 },
     { "CMYKA", UndefinedCompression, 0.0 },