#define ROP_USE_X #include #include "rop-generic.h" void rop_xputimage( Display *disp, Drawable target, GC gc, XImage *img, const ROP_AREA *area, unsigned int srcx, unsigned int srcy, unsigned int dstx, unsigned int dsty, unsigned int w, unsigned int h) { img->byte_order = MSBFirst; img->bitmap_unit = 8; img->bitmap_bit_order = MSBFirst; img->bitmap_pad = 8; img->width = area->w; img->height = area->h; img->data = (char *) area->bits; img->bytes_per_line = area->rowbytes; XPutImage(disp,target,gc,img,srcx,srcy,dstx,dsty,w,h); }