|
|
1.1 ! root 1: #include <X/mit-copyright.h> ! 2: ! 3: /* $Header: XDrawPatternd.c,v 10.7 86/11/06 17:47:38 jg Rel $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1985 */ ! 5: ! 6: #include "XlibInternal.h" ! 7: XDrawPatterned (w, vlist, vcount, width, height, pixel, altpix, pattern, ! 8: func, planes) ! 9: Window w; ! 10: int func; ! 11: int pixel, altpix, planes, height, width, vcount; ! 12: Pattern pattern; ! 13: Vertex *vlist; ! 14: { ! 15: register Display *dpy; ! 16: register XReq *req; ! 17: int nbytes; ! 18: ! 19: GetReq(X_Draw, w); ! 20: dpy->lastdraw = (caddr_t) req; ! 21: req->func = func; ! 22: req->mask = planes; ! 23: req->params0 = vcount; ! 24: req->paramu1 = pixel; ! 25: req->param.b[4] = height; ! 26: req->param.b[5] = width; ! 27: req->params3 = DrawPatternedLine; ! 28: req->paramu4 = altpix; ! 29: req->params5 = pattern & 0xffff; /* pattern string */ ! 30: req->params6 = ((pattern & 0xf0000) >> 16) + 1; /* pattern length */ ! 31: req->params7 = (pattern & 0xfff00000) >> 20; /* pattern multiplier */ ! 32: nbytes = vcount*psizeof (Vertex); ! 33: PackData(dpy, vlist, nbytes); ! 34: } ! 35:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.