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

1.1       root        1: #include "copyright.h"
                      2: 
                      3: /* $Header: XSetState.c,v 11.9 87/09/11 08:07:18 toddb Exp $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1986  */
                      5: 
                      6: #include "Xlibint.h"
                      7: 
                      8: XSetState(dpy, gc, foreground, background, function, planemask)
                      9: register Display *dpy;
                     10: GC gc;
                     11: int function;
                     12: unsigned long planemask;
                     13: unsigned long foreground, background;
                     14: {
                     15:     XGCValues *gv = &gc->values;
                     16: 
                     17:     LockDisplay(dpy);
                     18: 
                     19:     if (function != gv->function) {
                     20:        gv->function = function;
                     21:        gc->dirty |= GCFunction;
                     22:     }
                     23:     if (planemask != gv->plane_mask) {
                     24:        gv->plane_mask = planemask;
                     25:        gc->dirty |= GCPlaneMask;
                     26:     }
                     27:     if (foreground != gv->foreground) {
                     28:        gv->foreground = foreground;
                     29:        gc->dirty |= GCForeground;
                     30:     }
                     31:     if (background != gv->background) {
                     32:        gv->background = background;
                     33:        gc->dirty |= GCBackground;
                     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.