summaryrefslogtreecommitdiff
path: root/src/plugin-luaosmesa.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin-luaosmesa.cc')
-rw-r--r--src/plugin-luaosmesa.cc9
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));
}