1 diff -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
8 -#include <magick/MagickCore.h>
9 +#include <MagickCore/MagickCore.h>
11 @implementation GSImageMagickImageRep
15 if (image->units == PixelsPerCentimeterResolution)
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);
22 - res = NSMakeSize(image->x_resolution, image->y_resolution);
23 + res = NSMakeSize(image->resolution.x, image->resolution.y);
26 if (res.width > 0 && res.height > 0)
29 ExceptionInfo *exception = AcquireExceptionInfo();
30 ImageInfo *imageinfo = CloneImageInfo(NULL);
31 + const ColorInfo *colorinfo = GetColorInfo("none", exception);
32 Image *images, *image;
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;
39 images = BlobToImage(imageinfo, [data bytes], [data length], exception);