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

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XSetTSOrig.c,v 11.2 87/09/11 08:15:56 toddb Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #include "Xlibint.h"
        !             7: 
        !             8: XSetTSOrigin (dpy, gc, x, y)
        !             9: register Display *dpy;
        !            10: GC gc;
        !            11: int x, y;
        !            12: {
        !            13:     XGCValues *gv = &gc->values;
        !            14: 
        !            15:     LockDisplay(dpy);
        !            16:     if (x != gv->ts_x_origin) {
        !            17:        gv->ts_x_origin = x;
        !            18:        gc->dirty |= GCTileStipXOrigin;
        !            19:     }
        !            20:     if (y != gv->ts_y_origin) {
        !            21:        gv->ts_y_origin = y;
        !            22:        gc->dirty |= GCTileStipYOrigin;
        !            23:     }
        !            24:     UnlockDisplay(dpy);
        !            25:     SyncHandle();
        !            26: }

unix.superglobalmegacorp.com

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