diff options
author | Bart Massey <bart@cs.pdx.edu> | 2013-08-21 22:19:09 -0700 |
---|---|---|
committer | Bart Massey <bart@cs.pdx.edu> | 2013-08-23 16:39:38 -0700 |
commit | 8875ae01cda333edfccbfc683516b2e8b901f935 (patch) | |
tree | aec34ca6aabead1ef1e6f2bcd81354b07a7897ad | |
parent | cfd8da474e31d9399ac26f6a3ee4a890785aed6f (diff) |
changed test_xcb_image to work with XY_PIXMAP with nontrivial planemask
-rw-r--r-- | image/test_xcb_image.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/image/test_xcb_image.c b/image/test_xcb_image.c index af890ca..3e3f717 100644 --- a/image/test_xcb_image.c +++ b/image/test_xcb_image.c @@ -55,13 +55,17 @@ reflect_window (xcb_connection_t *c, int32_t y; int format; - format = XCB_IMAGE_FORMAT_Z_PIXMAP; + format = XCB_IMAGE_FORMAT_XY_PIXMAP; printf ("get_image %d %d\n", width, height); image = xcb_image_get (c, win, 0, 0, width, height, - ~0, + 0xaaaaaaaa, format); + if (!image) { + printf("xcb_image_get failed: exiting\n"); + exit(1); + } printf ("Create image summary:\n"); printf (" * format................: %d\n", image->format); @@ -71,6 +75,7 @@ reflect_window (xcb_connection_t *c, printf (" * depth.................: %d\n", image->depth); printf (" * bytes/line............: %d\n", image->stride); printf (" * bits/pixel (or unit)..: %d\n", image->bpp); + printf (" * plane_mask............: %#x\n", image->plane_mask); printf ("bpl %d %d\n", image->stride, image->height); |