1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: XDrawPatternd.c,v 10.5 86/02/01 15:32:35 tony 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->param.s[0] = vcount;
  24:     req->param.u[1] = pixel;
  25:     req->param.b[4] = height;
  26:     req->param.b[5] = width;
  27:     req->param.s[3] = DrawPatternedLine;
  28:     req->param.u[4] = altpix;
  29:     req->param.s[5] = pattern & 0xffff;  /* pattern string */
  30:     req->param.s[6] = ((pattern & 0xf0000) >> 16) + 1;  /* pattern length */
  31:     req->param.s[7] = (pattern & 0xf00000) >> 20;  /* pattern multiplier */
  32:     nbytes = vcount*sizeof (Vertex);
  33:     Data(dpy, (char *) vlist, nbytes);
  34: }

Defined functions

XDrawPatterned defined in line 7; used 1 times
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 862
Valid CSS Valid XHTML 1.0 Strict