From 1604f7d793aa9678dbab3e115dce07b19446b52e Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 1 Jun 2009 09:04:25 -0700 Subject: MagickLib got renamed to MagickCore, probably in version 6.5 of libImageMagick. --- src/plugin-luaosmesa.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugin-luaosmesa.cc b/src/plugin-luaosmesa.cc index f89b712..79c4687 100644 --- a/src/plugin-luaosmesa.cc +++ b/src/plugin-luaosmesa.cc @@ -18,6 +18,13 @@ #define WEAK #endif +#if MagickLibVersion >= 0x650 +#define MAGICKCUBIC MagickCore::CubicFilter +#else +#define MAGICKCUBIC MagickLib::CubicFilter +#endif + + OSMesaContext ctx = 0; void *buffer = 0; int width = -1; @@ -100,7 +107,7 @@ void flip_scene(scene_t * scene, const char * buffer, int width, int height, boo if (upscale) { // i.resize(Magick::Geometry(width / 2, height / 2)); - i.filterType(MagickLib::CubicFilter); + i.filterType(MAGICKCUBIC); i.scale(Magick::Geometry(width / 2, height / 2)); } -- cgit v1.2.3