Home | History | Annotate | Download | only in gregbook

Lines Matching refs:ximage

142 static XImage *ximage;
667 ximage = XCreateImage(display, visual, depth, ZPixmap, 0,
670 if (!ximage) {
683 ximage->byte_order = MSBFirst;
700 int ximage_rowbytes = ximage->bytes_per_line;
701 /* int bpp = ximage->bits_per_pixel; */
708 Trace((stderr, " (bpp = %d)\n", ximage->bits_per_pixel))
709 Trace((stderr, " (byte_order = %s)\n", ximage->byte_order == MSBFirst?
710 "MSBFirst" : (ximage->byte_order == LSBFirst? "LSBFirst" : "unknown")))
717 dest = ximage->data + row*ximage_rowbytes;
727 /* recall that we set ximage->byte_order = MSBFirst above */
738 /* recall that we set ximage->byte_order = MSBFirst above */
770 /* recall that we set ximage->byte_order = MSBFirst above */
779 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
791 dest = ximage->data + row*ximage_rowbytes;
803 /* recall that we set ximage->byte_order = MSBFirst above */
835 /* recall that we set ximage->byte_order = MSBFirst above */
842 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
857 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0,
875 if (ximage) {
876 if (ximage->data) {
877 free(ximage->data); /* we allocated it, so we free it */
878 ximage->data = (char *)NULL; /* instead of XDestroyImage() */
880 XDestroyImage(ximage);
881 ximage = NULL;