diff options
author | Pixel <pixel@nobis-crew.org> | 2009-06-01 09:04:25 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-06-01 09:04:25 -0700 |
commit | 1604f7d793aa9678dbab3e115dce07b19446b52e (patch) | |
tree | 4e7f84138c040332accc752100432c2426065c61 | |
parent | 79fd5d88f9f269513a2e8c35413f0db4671b054f (diff) |
MagickLib got renamed to MagickCore, probably in version 6.5 of libImageMagick.
-rw-r--r-- | src/plugin-luaosmesa.cc | 9 |
1 files changed, 8 insertions, 1 deletions
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)); } |