|
|
1.1 root 1: #include "copyright.h"
2:
3: /* $Header: XSetClMask.c,v 11.6 87/09/11 08:09:50 toddb Exp $ */
4: /* Copyright Massachusetts Institute of Technology 1986 */
5:
6: #include "Xlibint.h"
7:
8: XSetClipMask (dpy, gc, mask)
9: register Display *dpy;
10: GC gc;
11: Pixmap mask;
12: {
13: LockDisplay(dpy);
14: if ((gc->values.clip_mask != mask) || (gc->rects == 1)) {
15: gc->values.clip_mask = mask;
16: gc->dirty |= GCClipMask;
17: gc->rects = 0;
18: _XFlushGCCache(dpy, gc);
19: }
20: UnlockDisplay(dpy);
21: SyncHandle();
22: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.