]> git.pld-linux.org Git - packages/gnustep-gui.git/blame - imagemagick7.patch
icu rebuild
[packages/gnustep-gui.git] / imagemagick7.patch
CommitLineData
319a56d2
JR
1diff -ur gnustep-gui-0.24.0/Source/GSImageMagickImageRep.m gnustep-gui-0.24.0-im7/Source/GSImageMagickImageRep.m
2--- gnustep-gui-0.24.0/Source/GSImageMagickImageRep.m 2011-07-13 05:34:38.000000000 +0200
3+++ gnustep-gui-0.24.0-im7/Source/GSImageMagickImageRep.m 2016-12-25 18:35:02.879438129 +0100
4@@ -43,7 +43,7 @@
5
6 #if HAVE_IMAGEMAGICK
7
8-#include <magick/MagickCore.h>
9+#include <MagickCore/MagickCore.h>
10
11 @implementation GSImageMagickImageRep
12
13@@ -82,11 +82,11 @@
14 NSSize res;
15 if (image->units == PixelsPerCentimeterResolution)
16 {
17- res = NSMakeSize(image->x_resolution * 2.54, image->y_resolution * 2.54);
18+ res = NSMakeSize(image->resolution.x * 2.54, image->resolution.y * 2.54);
19 }
20 else
21 {
22- res = NSMakeSize(image->x_resolution, image->y_resolution);
23+ res = NSMakeSize(image->resolution.x, image->resolution.y);
24 }
25
26 if (res.width > 0 && res.height > 0)
27@@ -117,11 +117,12 @@
28
29 ExceptionInfo *exception = AcquireExceptionInfo();
30 ImageInfo *imageinfo = CloneImageInfo(NULL);
31+ const ColorInfo *colorinfo = GetColorInfo("none", exception);
32 Image *images, *image;
33
34 // Set the background color to transparent
35 // (otherwise SVG's are rendered against a white background by default)
36- QueryColorDatabase("none", &imageinfo->background_color, exception);
37+ imageinfo->background_color = colorinfo->color;
38
39 images = BlobToImage(imageinfo, [data bytes], [data length], exception);
40
This page took 0.1536 seconds and 4 git commands to generate.