Annotation of 43BSDTahoe/new/X/Xlib/XDrawDashed.c, revision 1.1

1.1     ! root        1: #include <X/mit-copyright.h>
        !             2: 
        !             3: /* $Header: XDrawDashed.c,v 10.7 86/11/06 17:47:14 jg Rel $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1985  */
        !             5: 
        !             6: #include "XlibInternal.h"
        !             7: XDrawDashed (w, vlist, vcount, width, height, pixel, pattern, func, planes)
        !             8:        Window w;
        !             9:        int func;
        !            10:        int pixel, planes, height, width, vcount;
        !            11:        Pattern pattern;
        !            12:        Vertex *vlist;
        !            13: {
        !            14:        register Display *dpy;
        !            15:        register XReq *req;
        !            16:        int nbytes;
        !            17: 
        !            18:        GetReq(X_Draw, w);
        !            19:        dpy->lastdraw = (caddr_t) req;
        !            20:        req->func = func;
        !            21:        req->mask = planes;
        !            22:        req->params0 = vcount;
        !            23:        req->paramu1 = pixel;
        !            24:        req->param.b[4] = height;
        !            25:        req->param.b[5] = width;
        !            26:        req->params3 = DrawDashedLine;
        !            27:        req->params5 = pattern & 0xffff;  /* pattern string */
        !            28:        req->params6 = ((pattern & 0xf0000) >> 16) + 1;  /* pattern length */
        !            29:        req->params7 = (pattern & 0xfff00000) >> 20;  /* pattern multiplier */
        !            30:        nbytes = vcount*psizeof(Vertex);
        !            31:        PackData(dpy, vlist, nbytes);
        !            32: }
        !            33: 

unix.superglobalmegacorp.com

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