mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
Fix compilation against ImageMagick 7.X when compiling with --enable-imagemagick
This commit is contained in:
parent
9abf2a7494
commit
092f93aed5
1 changed files with 3 additions and 3 deletions
|
@ -82,11 +82,11 @@
|
|||
NSSize res;
|
||||
if (image->units == PixelsPerCentimeterResolution)
|
||||
{
|
||||
res = NSMakeSize(image->x_resolution * 2.54, image->y_resolution * 2.54);
|
||||
res = NSMakeSize(image->resolution.x * 2.54, image->resolution.y * 2.54);
|
||||
}
|
||||
else
|
||||
{
|
||||
res = NSMakeSize(image->x_resolution, image->y_resolution);
|
||||
res = NSMakeSize(image->resolution.x, image->resolution.y);
|
||||
}
|
||||
|
||||
if (res.width > 0 && res.height > 0)
|
||||
|
@ -121,7 +121,7 @@
|
|||
|
||||
// Set the background color to transparent
|
||||
// (otherwise SVG's are rendered against a white background by default)
|
||||
QueryColorDatabase("none", &imageinfo->background_color, exception);
|
||||
QueryColorCompliance("none", AllCompliance, &imageinfo->background_color, exception);
|
||||
|
||||
images = BlobToImage(imageinfo, [data bytes], [data length], exception);
|
||||
|
||||
|
|
Loading…
Reference in a new issue