|
|
researchv9-SUN3(old)
#include "copyright.h"
/* $Header: /var/lib/cvsd/repos/research/researchv9/X11/src/X.V11R1/lib/X/XDrPoints.c,v 1.1.1.1 2018/04/24 17:22:00 root Exp $ */
/* Copyright Massachusetts Institute of Technology 1986 */
#include "Xlibint.h"
XDrawPoints(dpy, d, gc, points, n_points, mode)
register Display *dpy;
Drawable d;
GC gc;
XPoint *points;
int n_points;
int mode; /* CoordMode */
{
register xPolyPointReq *req;
register long nbytes;
LockDisplay(dpy);
FlushGC(dpy, gc);
GetReq(PolyPoint, req);
req->drawable = d;
req->gc = gc->gid;
req->coordMode = mode;
/* on the VAX, each point is 2 16-bit integers */
req->length += n_points;
/* do this explicitly once; PackData may be a macro and thus do it
multiple times if we pass it as a parameter */
nbytes = (long)n_points << 2;
PackData(dpy, (char *) points, nbytes);
UnlockDisplay(dpy);
SyncHandle();
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.