|
|
1.1 ! root 1: #include "copyright.h" ! 2: ! 3: /* $Header: XDrRects.c,v 11.8 87/09/11 08:15:27 toddb Exp $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1986 */ ! 5: ! 6: #include "Xlibint.h" ! 7: ! 8: XDrawRectangles(dpy, d, gc, rects, n_rects) ! 9: register Display *dpy; ! 10: Drawable d; ! 11: GC gc; ! 12: XRectangle *rects; ! 13: int n_rects; ! 14: { ! 15: register xPolyRectangleReq *req; ! 16: ! 17: LockDisplay(dpy); ! 18: FlushGC(dpy, gc); ! 19: GetReq(PolyRectangle, req); ! 20: req->drawable = d; ! 21: req->gc = gc->gid; ! 22: ! 23: /* sizeof(xRectangle) will be a multiple of 4 */ ! 24: req->length += n_rects * (sizeof(xRectangle) / 4); ! 25: ! 26: n_rects *= sizeof(xRectangle); ! 27: ! 28: PackData (dpy, (char *) rects, (long)n_rects); ! 29: UnlockDisplay(dpy); ! 30: SyncHandle(); ! 31: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.