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

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XSetDashes.c,v 11.8 87/08/24 18:54:40 newman Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #include "Xlibint.h"
        !             7: 
        !             8: XSetDashes (dpy, gc, dash_offset, list, n)
        !             9:     register Display *dpy;
        !            10:     GC gc;
        !            11:     int dash_offset;
        !            12:     char *list;
        !            13:     int n;
        !            14:     {
        !            15:     register xSetDashesReq *req;
        !            16: 
        !            17:     LockDisplay(dpy);
        !            18:     GetReq (SetDashes,req);
        !            19:     req->gc = gc->gid;
        !            20:     req->dashOffset = gc->values.dash_offset = dash_offset;
        !            21:     req->nDashes = n;
        !            22:     req->length += (n+3)>>2;
        !            23:     gc->dashes = 1;
        !            24:     gc->dirty &= ~(GCDashList | GCDashOffset);
        !            25:     Data (dpy, list, (long)n);
        !            26:     UnlockDisplay(dpy);
        !            27:     SyncHandle();
        !            28:     }
        !            29:     

unix.superglobalmegacorp.com

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