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

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XFillPoly.c,v 11.7 87/09/11 08:03:06 toddb Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #include "Xlibint.h"
        !             7: 
        !             8: XFillPolygon(dpy, d, gc, points, n_points, shape, mode)
        !             9: register Display *dpy;
        !            10: Drawable d;
        !            11: GC gc;
        !            12: XPoint *points;
        !            13: int n_points;
        !            14: int shape;
        !            15: int mode;
        !            16: {
        !            17:     register xFillPolyReq *req;
        !            18:     register long nbytes;
        !            19: 
        !            20:     LockDisplay(dpy);
        !            21:     FlushGC(dpy, gc);
        !            22:     GetReq(FillPoly, req);
        !            23: 
        !            24:     req->drawable = d;
        !            25:     req->gc = gc->gid;
        !            26:     req->shape = shape;
        !            27:     req->coordMode = mode;
        !            28: 
        !            29:     /* on the VAX, each point is 2 16-bit ints = 4 bytes */
        !            30:     req->length += n_points;
        !            31: 
        !            32:     /* shift (mult. by 4) before passing to the (possible) macro */
        !            33: 
        !            34:     nbytes = n_points << 2;
        !            35:     
        !            36:     PackData(dpy, (char *) points, nbytes);
        !            37:     UnlockDisplay(dpy);
        !            38:     SyncHandle();
        !            39: }

unix.superglobalmegacorp.com

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