#include "xsimple.h"


Pixmap mkpixmap(int width, int height, int depth)
{
   return XCreatePixmap(xv.d, xv.w, width, height, depth);
}

void rmpixmap(Pixmap pmap)
{
   XFreePixmap(xv.d, pmap);
}

void putpixmap(Pixmap pmap, int src_x, int src_y, int dst_x, int dst_y,
       int width, int height)
{
   XCopyArea(xv.d, pmap, xv.pmap, xv.gc, src_x, src_y, width, height,
           dst_x, dst_y);
}