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