#include <X/mit-copyright.h>

/* $Header: /var/lib/cvsd/repos/CSRG/43BSDTahoe/new/X/Xlib/XBitmapBitPut.c,v 1.1.1.1 2018/04/24 16:12:58 root Exp $ */
/* Copyright    Massachusetts Institute of Technology    1985	*/

#include "XlibInternal.h"
XBitmapBitsPut (w, x, y, width, height, data, 
    foreground, background, mask, func, planes)
	Window w;
	int x, y, width, height;
	short *data;
	int foreground, background;
	Bitmap mask;
	int func;
	int planes;
{
	register Display *dpy;
	register XReq *req;
	int len;

	GetReq(X_BitmapBitsPut, w);
	req->mask = planes;
	req->func = func;
	req->params0 = height;
	req->params1 = width;
	req->params2 = x;
	req->params3 = y;
	req->paramu4 = foreground;
	req->paramu5 = background;
	req->param.l[3] = mask;
	len = BitmapSize (width, height)/UBPS;
	PackData (dpy, data, len);
}

