Lines Matching refs:XImage
273 static XImage *ximage;
1008 ximage = XCreateImage(display, visual, depth, ZPixmap, 0,
1011 if (!ximage) {
1024 ximage->byte_order = MSBFirst;
1083 int ximage_rowbytes = ximage->bytes_per_line;
1295 int bpp = ximage->bits_per_pixel;
1299 dest = ximage->data + row*ximage_rowbytes;
1308 /* recall that we set ximage->byte_order = MSBFirst above */
1322 /* recall that we set ximage->byte_order = MSBFirst above */
1337 dest = ximage->data + row*ximage_rowbytes;
1345 /* recall that we set ximage->byte_order = MSBFirst above */
1357 XPutImage(display, window, gc, ximage, 0, 0, 0, 0, rpng2_info.width,
1376 int ximage_rowbytes = ximage->bytes_per_line;
1420 int bpp = ximage->bits_per_pixel;
1425 dest = ximage->data + row*ximage_rowbytes;
1434 /* recall that we set ximage->byte_order = MSBFirst above */
1478 /* recall that we set ximage->byte_order = MSBFirst above */
1500 dest = ximage->data + row*ximage_rowbytes;
1512 /* recall that we set ximage->byte_order = MSBFirst above */
1549 /* recall that we set ximage->byte_order = MSBFirst above */
1571 XPutImage(display, window, gc, ximage, 0, (int)firstrow, 0,
1578 XPutImage(display, window, gc, ximage, 0, (int)firstrow, 0,
1619 int ximage_rowbytes = ximage->bytes_per_line;
1626 Trace((stderr, " (bpp = %d)\n", ximage->bits_per_pixel))
1627 Trace((stderr, " (byte_order = %s)\n", ximage->byte_order == MSBFirst?
1628 "MSBFirst" : (ximage->byte_order == LSBFirst? "LSBFirst" : "unknown")))
1640 int bpp = ximage->bits_per_pixel;
1646 dest = ximage->data + row*ximage_rowbytes;
1656 /* recall that we set ximage->byte_order = MSBFirst above */
1674 /* recall that we set ximage->byte_order = MSBFirst above */
1722 /* recall that we set ximage->byte_order = MSBFirst above */
1740 /* recall that we set ximage->byte_order = MSBFirst above */
1759 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
1773 dest = ximage->data + row*ximage_rowbytes;
1785 /* recall that we set ximage->byte_order = MSBFirst above */
1822 /* recall that we set ximage->byte_order = MSBFirst above */
1829 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
1844 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
2091 if (ximage) {
2092 if (ximage->data) {
2093 free(ximage->data); /* we allocated it, so we free it */
2094 ximage->data = (char *)NULL; /* instead of XDestroyImage() */
2096 XDestroyImage(ximage);
2097 ximage = NULL;