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

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XSetLStyle.c,v 11.9 87/09/11 08:07:06 toddb Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #include "Xlibint.h"
        !             7: 
        !             8: XSetLineAttributes(dpy, gc, linewidth, linestyle, capstyle, joinstyle)
        !             9: register Display *dpy;
        !            10: GC gc;
        !            11: unsigned int linewidth; /* CARD16 */
        !            12: int linestyle;
        !            13: int capstyle;
        !            14: int joinstyle;
        !            15: {
        !            16:     XGCValues *gv = &gc->values;
        !            17: 
        !            18:     LockDisplay(dpy);
        !            19:     if (linewidth != gv->line_width) {
        !            20:        gv->line_width = linewidth;
        !            21:        gc->dirty |= GCLineWidth;
        !            22:     }
        !            23:     if (linestyle != gv->line_style) {
        !            24:        gv->line_style = linestyle;
        !            25:        gc->dirty |= GCLineStyle;
        !            26:     }
        !            27:     if (capstyle != gv->cap_style) {
        !            28:        gv->cap_style = capstyle;
        !            29:        gc->dirty |= GCCapStyle;
        !            30:     }
        !            31:     if (joinstyle != gv->join_style) {
        !            32:        gv->join_style = joinstyle;
        !            33:        gc->dirty |= GCJoinStyle;
        !            34:     }
        !            35:     UnlockDisplay(dpy);
        !            36:     SyncHandle();
        !            37: }

unix.superglobalmegacorp.com

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