summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorIan Osgood <iano@quirkster.com>2006-03-19 21:47:12 -0800
committerIan Osgood <iano@quirkster.com>2006-03-19 21:47:12 -0800
commit7ec5c9557daa14cd9952115ed40e3acd9ac63c9d (patch)
tree2a6a724f0a96d8358f05ccbb53a23be7e13a4eda /image
parent4f65cfee8d772504a6437d2626a38e187ccde4a3 (diff)
Remove xcb_image dependency on X11/Xlib.h
Diffstat (limited to 'image')
-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.