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