Annotation of researchv9/X11/src/X.V11R1/lib/X/XDrPoints.c, revision 1.1

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XDrPoints.c,v 1.8 87/09/11 08:15:24 toddb Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #include "Xlibint.h"
        !             7: 
        !             8: XDrawPoints(dpy, d, gc, points, n_points, mode)
        !             9:     register Display *dpy;
        !            10:     Drawable d;
        !            11:     GC gc;
        !            12:     XPoint *points;
        !            13:     int n_points;
        !            14:     int mode; /* CoordMode */
        !            15: {
        !            16:     register xPolyPointReq *req;
        !            17:     register long nbytes;
        !            18:     LockDisplay(dpy);
        !            19:     FlushGC(dpy, gc);
        !            20:     GetReq(PolyPoint, req);
        !            21:     req->drawable = d;
        !            22:     req->gc = gc->gid;
        !            23:     req->coordMode = mode;
        !            24: 
        !            25:     /* on the VAX, each point is 2 16-bit integers */
        !            26:     req->length += n_points;
        !            27: 
        !            28:     /* do this explicitly once; PackData may be a macro and thus do it
        !            29:        multiple times if we pass it as a parameter */
        !            30:     nbytes = (long)n_points << 2;
        !            31: 
        !            32:     PackData(dpy, (char *) points, nbytes);
        !            33:     UnlockDisplay(dpy);
        !            34:     SyncHandle();
        !            35: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.