Annotation of researchv9/X11/src/X.V11R1/lib/X/XDrLines.c, revision 1.1.1.1

1.1       root        1: #include "copyright.h"
                      2: 
                      3: /* $Header: XDrLines.c,v 11.9 87/09/11 08:15:20 toddb Exp $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1986  */
                      5: 
                      6: #include "Xlibint.h"
                      7: 
                      8: XDrawLines (dpy, d, gc, points, npoints, mode)
                      9:     register Display *dpy;
                     10:     Drawable d;
                     11:     GC gc;
                     12:     XPoint *points;
                     13:     int npoints;
                     14:     int mode;
                     15: {
                     16:     register xPolyLineReq *req;
                     17:     register long length;
                     18:     LockDisplay(dpy);
                     19:     FlushGC(dpy, gc);
                     20:     GetReq (PolyLine, req);
                     21:     req->drawable = d;
                     22:     req->gc = gc->gid;
                     23:     req->coordMode = mode;
                     24:     req->length += npoints;
                     25:        /* each point is 2 16-bit integers */
                     26:     length = npoints << 2; 
                     27:        /* do this here, not in arguments to PackData, since PackData
                     28:           may be a macro which uses its arguments more than once */
                     29:     PackData (dpy, (char *) points, length);
                     30:     UnlockDisplay(dpy);
                     31:     SyncHandle();
                     32: }
                     33: 

unix.superglobalmegacorp.com

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