|
|
researchv9-SUN3(old)
#include "copyright.h"
/* $Header: /var/lib/cvsd/repos/research/researchv9/X11/src/X.V11R1/lib/X/XAllCells.c,v 1.1.1.1 2018/04/24 17:22:00 root Exp $ */
/* Copyright Massachusetts Institute of Technology 1986 */
#define NEED_REPLIES
#include "Xlibint.h"
Status XAllocColorCells(dpy, cmap, contig, masks, nplanes, pixels, ncolors)
register Display *dpy;
Colormap cmap;
Bool contig;
unsigned int ncolors; /* CARD16 */
unsigned int nplanes; /* CARD16 */
unsigned long masks[]; /* LISTofCARD32 */ /* RETURN */
unsigned long pixels[]; /* LISTofCARD32 */ /* RETURN */
{
Status status;
xAllocColorCellsReply rep;
register xAllocColorCellsReq *req;
LockDisplay(dpy);
GetReq(AllocColorCells, req);
req->cmap = cmap;
req->colors = ncolors;
req->planes = nplanes;
req->contiguous = contig;
status = _XReply(dpy, (xReply *)&rep, 0, xFalse);
if (status) {
_XRead (dpy, (char *) pixels, 4 * rep.nPixels);
_XRead (dpy, (char *) masks, 4 * rep.nMasks);
}
UnlockDisplay(dpy);
SyncHandle();
return(status);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.