]> git.pld-linux.org Git - packages/emacs.git/blobdiff - imagemagick7.patch
- up to 26.3
[packages/emacs.git] / imagemagick7.patch
index 30584011fd7a98a893a7726cca44a09841d6e513..1fbaf221a8b3331d210be1a5a488987a024b4b5f 100644 (file)
@@ -1,17 +1,17 @@
 --- emacs-25.1/configure.ac~   2016-07-25 09:08:36.000000000 +0200
 +++ emacs-25.1/configure.ac    2016-12-25 13:00:06.594562908 +0100
-@@ -2413,7 +2413,7 @@
-   if test "${with_imagemagick}" != "no"; then
+@@ -2524,7 +2524,7 @@ if test "${HAVE_X11}" = "yes" || test "$
      ## 6.3.5 is the earliest version known to work; see Bug#17339.
      ## 6.8.2 makes Emacs crash; see Bug#13867.
--    IMAGEMAGICK_MODULE="Wand >= 6.3.5 Wand != 6.8.2"
-+    IMAGEMAGICK_MODULE="MagickWand >= 6.3.5 MagickWand != 6.8.2"
+     ## 7 and later have not been ported to; See Bug#25967.
+-    IMAGEMAGICK_MODULE="Wand >= 6.3.5 Wand != 6.8.2 Wand < 7"
++    IMAGEMAGICK_MODULE="MagicWand >= 6.3.5 Wand != 6.8.2"
      EMACS_CHECK_MODULES([IMAGEMAGICK], [$IMAGEMAGICK_MODULE])
-     AC_SUBST(IMAGEMAGICK_CFLAGS)
-     AC_SUBST(IMAGEMAGICK_LIBS)
+     if test $HAVE_IMAGEMAGICK = yes; then
 --- emacs-24.3/src/image.c~    2016-12-25 12:47:48.000000000 +0100
 +++ emacs-24.3/src/image.c     2016-12-25 12:52:35.931084598 +0100
-@@ -7618,11 +7618,11 @@
+@@ -7618,14 +7618,14 @@
  /* The GIF library also defines DrawRectangle, but its never used in Emacs.
     Therefore rename the function so it doesn't collide with ImageMagick.  */
  #define DrawRectangle DrawRectangleGif
 +#include <MagickCore/version.h>
  #if 0x653 <= MagickLibVersion && MagickLibVersion <= 0x665
  extern WandExport void PixelGetMagickColor (const PixelWand *,
-                                           MagickPixelPacket *);
+-                                          MagickPixelPacket *);
++                                          PixelInfo *);
+ #endif
+ /* Log ImageMagick error message.
+@@ -8402,7 +8402,7 @@
+       PixelWand **source, **dest;
+       size_t source_width, source_height;
+       ssize_t source_left, source_top;
+-      MagickPixelPacket pixel;
++      PixelInfo pixel;
+       DisposeType dispose;
+       ptrdiff_t lines = 0;
+@@ -8467,7 +8467,7 @@
+             if (dispose == BackgroundDispose || PixelGetAlpha (source[x]))
+               {
+                 PixelGetMagickColor (source[x], &pixel);
+-                PixelSetMagickColor (dest[x + source_left], &pixel);
++                PixelSetPixelColor (dest[x + source_left], &pixel);
+               }
+           }
+         PixelSyncIterator (dest_iterator);
+@@ -8512,7 +8512,7 @@
+   MagickWand *image_wand;
+   PixelIterator *iterator;
+   PixelWand **pixels, *bg_wand = NULL;
+-  MagickPixelPacket  pixel;
++  PixelInfo  pixel;
+   Lisp_Object image;
+   Lisp_Object value;
+   Lisp_Object crop;
This page took 0.098121 seconds and 4 git commands to generate.