|
|
1.1 ! root 1: #include "copyright.h" ! 2: ! 3: /* $Header: XDrArcs.c,v 11.8 87/09/11 08:10:11 toddb Exp $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1986 */ ! 5: ! 6: #include "Xlibint.h" ! 7: ! 8: XDrawArcs(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 xPolyArcReq *req; ! 16: ! 17: LockDisplay(dpy); ! 18: FlushGC(dpy, gc); ! 19: GetReq(PolyArc,req); ! 20: req->drawable = d; ! 21: req->gc = gc->gid; ! 22: ! 23: /* sizeof(xArc) will be a multiple of 4 */ ! 24: req->length += n_arcs * (sizeof(xArc) / 4); ! 25: ! 26: n_arcs *= sizeof(xArc); ! 27: ! 28: PackData (dpy, (char *) arcs, (long)n_arcs); ! 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.