1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: XMakeTile.c,v 10.4 86/02/01 15:36:44 tony Rel $ */
   4: /* Copyright    Massachusetts Institute of Technology    1985	*/
   5: 
   6: #include "XlibInternal.h"
   7: Pixmap XMakeTile (pixel)
   8:         int pixel;
   9: {
  10:     register Display *dpy;
  11:     register XReq *req;
  12:     XRep rep;
  13: 
  14:     switch (pixel) {
  15:         case WhitePixel: return (_XlibCurrentDisplay->white);
  16:         case BlackPixel: return (_XlibCurrentDisplay->black);
  17:         }
  18: 
  19:     GetReq(X_MakePixmap, 0);
  20:     req->param.l[0] = 0;
  21:     req->param.s[2] = pixel;
  22:     if (!_XReply (dpy, &rep))
  23:         return (NULL);
  24:     return (rep.param.l[0]);
  25: }
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 866
Valid CSS Valid XHTML 1.0 Strict