summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--image/test_xcb_image.c5
-rw-r--r--image/test_xcb_image_shm.c1
-rw-r--r--image/xcb_image.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/image/test_xcb_image.c b/image/test_xcb_image.c
index 726c3fa..dbe9576 100644
--- a/image/test_xcb_image.c
+++ b/image/test_xcb_image.c
@@ -5,7 +5,6 @@
#include <X11/XCB/xcb.h>
#include <X11/XCB/shm.h>
-#include <X11/Xlib.h>
#include "xcb_aux.h"
#include "xcb_image.h"
@@ -36,7 +35,7 @@ reflect_window (XCBConnection *c,
printf ("get_image %d %d\n", width, height);
image = XCBImageGet (c, win,
0, 0, width, height,
- AllPlanes,
+ XCBAllPlanes,
format);
printf ("Create image summary:\n");
@@ -92,7 +91,7 @@ reflect_window (XCBConnection *c,
0, 0, 0, 0, width, height);
image = XCBImageGet (c, new_win,
0, 0, width, height,
- AllPlanes,
+ XCBAllPlanes,
format);
printf ("New : \n");
for (j = 0 ; j < image->height ; j++)
diff --git a/image/test_xcb_image_shm.c b/image/test_xcb_image_shm.c
index 4975fe5..6e15be3 100644
--- a/image/test_xcb_image_shm.c
+++ b/image/test_xcb_image_shm.c
@@ -6,7 +6,6 @@
#include <X11/XCB/xcb.h>
#include <X11/XCB/shm.h>
-#include <X11/Xlib.h>
#include "xcb_aux.h"
#include "xcb_image.h"
diff --git a/image/xcb_image.h b/image/xcb_image.h
index 36d33a7..1a54550 100644
--- a/image/xcb_image.h
+++ b/image/xcb_image.h
@@ -107,6 +107,8 @@ int XCBImageInit (XCBImage *image);
*/
int XCBImageDestroy (XCBImage *image);
+#define XCBAllPlanes ((unsigned long)~0L)
+
/**
* Return a pointer to a XCBImage.
* @param conn The connection to the X server.
@@ -117,7 +119,7 @@ int XCBImageDestroy (XCBImage *image);
* drawable and define the upper-left corner of the rectangle.
* @param width The width of the subimage, in pixels.
* @param height The height of the subimage, in pixels.
- * @param plane_mask The plane mask.
+ * @param plane_mask The plane mask (can be XCBAllPlanes).
* @param format The format of the image. You can pass XYBitmap,
* XYPixmap, or ZPixmap.
* @return The subimage of @p draw defined by @p x, @p y, @p w, @p h.