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 e344fca..b5e24e2 100644
--- a/src/plugin-luaosmesa.cc
+++ b/src/plugin-luaosmesa.cc
@@ -20,6 +20,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;
@@ -102,7 +109,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));
}