aboutsummaryrefslogtreecommitdiff
path: root/modules/pdp_capture.c
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2005-07-09 19:38:22 +0000
committerN.N. <sevyves@users.sourceforge.net>2005-07-09 19:38:22 +0000
commit36b2d58cbaf75965e67e25ea45d72b5594d43467 (patch)
tree443b3d74290c4b5ed93b6bada26d92b2f3b34a65 /modules/pdp_capture.c
parent304d25a2828076188afbd32757f5a67009ed866b (diff)
PiDiP 0.12.19
svn path=/trunk/externals/pidip/; revision=3312
Diffstat (limited to 'modules/pdp_capture.c')
-rw-r--r--modules/pdp_capture.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/pdp_capture.c b/modules/pdp_capture.c
index 3231f4d..ccdc5c1 100644
--- a/modules/pdp_capture.c
+++ b/modules/pdp_capture.c
@@ -29,12 +29,18 @@
#include <assert.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
+#include <magick/methods.h>
#include <magick/api.h>
#include <magick/magick.h>
#include <magick/xwindow.h>
#define PDP_DISPLAY_LENGTH 1024
+// trick to handle Image Magick compatibility
+#if MagickLibVersion >= 0x619
+#include "../include/xwindow-private.h"
+#endif
+
static char *pdp_capture_version = "pdp_capture: version 0.1, capture of screen written by Yves Degoyon (ydegoyon@free.fr)";
typedef struct pdp_capture_struct