1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: XDrawDashed.c,v 10.5 86/02/01 15:32:23 tony Rel $ */
   4: /* Copyright    Massachusetts Institute of Technology    1985	*/
   5: 
   6: #include "XlibInternal.h"
   7: XDrawDashed (w, vlist, vcount, width, height, pixel, pattern, func, planes)
   8:     Window w;
   9:     int func;
  10:     int pixel, planes, height, width, vcount;
  11:     Pattern pattern;
  12:     Vertex *vlist;
  13: {
  14:     register Display *dpy;
  15:     register XReq *req;
  16:     int nbytes;
  17: 
  18:     GetReq(X_Draw, w);
  19:     dpy->lastdraw = (caddr_t) req;
  20:     req->func = func;
  21:     req->mask = planes;
  22:     req->param.s[0] = vcount;
  23:     req->param.u[1] = pixel;
  24:     req->param.b[4] = height;
  25:     req->param.b[5] = width;
  26:     req->param.s[3] = DrawDashedLine;
  27:     req->param.s[5] = pattern & 0xffff;  /* pattern string */
  28:     req->param.s[6] = ((pattern & 0xf0000) >> 16) + 1;  /* pattern length */
  29:     req->param.s[7] = (pattern & 0xf00000) >> 20;  /* pattern multiplier */
  30:     nbytes = vcount*sizeof(Vertex);
  31:     Data(dpy, (char *) vlist, nbytes);
  32: }

Defined functions

Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 702
Valid CSS Valid XHTML 1.0 Strict