]> git.pld-linux.org Git - packages/emacs.git/blame - imagemagick7.patch
- rebuild with ImageMagick 7.0.9.23
[packages/emacs.git] / imagemagick7.patch
CommitLineData
da54247a
JR
1--- emacs-25.1/configure.ac~ 2016-07-25 09:08:36.000000000 +0200
2+++ emacs-25.1/configure.ac 2016-12-25 13:00:06.594562908 +0100
21f61a37 3@@ -2524,7 +2524,7 @@ if test "${HAVE_X11}" = "yes" || test "$
da54247a
JR
4 ## 6.3.5 is the earliest version known to work; see Bug#17339.
5 ## 6.8.2 makes Emacs crash; see Bug#13867.
21f61a37
AM
6 ## 7 and later have not been ported to; See Bug#25967.
7- IMAGEMAGICK_MODULE="Wand >= 6.3.5 Wand != 6.8.2 Wand < 7"
8+ IMAGEMAGICK_MODULE="MagicWand >= 6.3.5 Wand != 6.8.2"
da54247a 9 EMACS_CHECK_MODULES([IMAGEMAGICK], [$IMAGEMAGICK_MODULE])
21f61a37
AM
10
11 if test $HAVE_IMAGEMAGICK = yes; then
da54247a
JR
12--- emacs-24.3/src/image.c~ 2016-12-25 12:47:48.000000000 +0100
13+++ emacs-24.3/src/image.c 2016-12-25 12:52:35.931084598 +0100
f683f3f6 14@@ -7618,14 +7618,14 @@
da54247a
JR
15 /* The GIF library also defines DrawRectangle, but its never used in Emacs.
16 Therefore rename the function so it doesn't collide with ImageMagick. */
17 #define DrawRectangle DrawRectangleGif
18-#include <wand/MagickWand.h>
19+#include <MagickWand/MagickWand.h>
20
21 /* ImageMagick 6.5.3 through 6.6.5 hid PixelGetMagickColor for some reason.
22 Emacs seems to work fine with the hidden version, so unhide it. */
23-#include <magick/version.h>
24+#include <MagickCore/version.h>
25 #if 0x653 <= MagickLibVersion && MagickLibVersion <= 0x665
26 extern WandExport void PixelGetMagickColor (const PixelWand *,
f683f3f6
JR
27- MagickPixelPacket *);
28+ PixelInfo *);
29 #endif
30
31 /* Log ImageMagick error message.
32@@ -8402,7 +8402,7 @@
33 PixelWand **source, **dest;
34 size_t source_width, source_height;
35 ssize_t source_left, source_top;
36- MagickPixelPacket pixel;
37+ PixelInfo pixel;
38 DisposeType dispose;
39 ptrdiff_t lines = 0;
40
41@@ -8467,7 +8467,7 @@
42 if (dispose == BackgroundDispose || PixelGetAlpha (source[x]))
43 {
44 PixelGetMagickColor (source[x], &pixel);
45- PixelSetMagickColor (dest[x + source_left], &pixel);
46+ PixelSetPixelColor (dest[x + source_left], &pixel);
47 }
48 }
49 PixelSyncIterator (dest_iterator);
50@@ -8512,7 +8512,7 @@
51 MagickWand *image_wand;
52 PixelIterator *iterator;
53 PixelWand **pixels, *bg_wand = NULL;
54- MagickPixelPacket pixel;
55+ PixelInfo pixel;
56 Lisp_Object image;
57 Lisp_Object value;
58 Lisp_Object crop;
This page took 0.075372 seconds and 4 git commands to generate.