summaryrefslogtreecommitdiff
path: root/src/drivers/Xlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Xlib')
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H
index 26f5ff2b9..eda367e61 100644
--- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H
+++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H
@@ -25,9 +25,24 @@
#ifndef FL_CFG_GFX_XLIB_H
#define FL_CFG_GFX_XLIB_H
+#include <config.h>
#include <FL/Fl_Graphics_Driver.H>
#include <FL/x.H>
+#if HAVE_X11_XREGION_H
+# include <X11/Xregion.h>
+#else // if the X11/Xregion.h header is not available, we assume this is the layout of an X11 Region:
+typedef struct {
+ short x1, x2, y1, y2;
+} BOX;
+struct _XRegion {
+ long size;
+ long numRects;
+ BOX *rects;
+ BOX extents;
+};
+#endif // HAVE_X11_XREGION_H
+
/**
\brief The Xlib-specific graphics class.
*