Lines Matching refs:XImage
139 static XImage *ximage;
660 ximage = XCreateImage(display, visual, depth, ZPixmap, 0,
663 if (!ximage) {
676 ximage->byte_order = MSBFirst;
693 int ximage_rowbytes = ximage->bytes_per_line;
694 /* int bpp = ximage->bits_per_pixel; */
701 Trace((stderr, " (bpp = %d)\n", ximage->bits_per_pixel))
702 Trace((stderr, " (byte_order = %s)\n", ximage->byte_order == MSBFirst?
703 "MSBFirst" : (ximage->byte_order == LSBFirst? "LSBFirst" : "unknown")))
710 dest = ximage->data + row*ximage_rowbytes;
720 /* recall that we set ximage->byte_order = MSBFirst above */
731 /* recall that we set ximage->byte_order = MSBFirst above */
763 /* recall that we set ximage->byte_order = MSBFirst above */
772 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
784 dest = ximage->data + row*ximage_rowbytes;
796 /* recall that we set ximage->byte_order = MSBFirst above */
828 /* recall that we set ximage->byte_order = MSBFirst above */
835 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
850 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
868 if (ximage) {
869 if (ximage->data) {
870 free(ximage->data); /* we allocated it, so we free it */
871 ximage->data = (char *)NULL; /* instead of XDestroyImage() */
873 XDestroyImage(ximage);
874 ximage = NULL;