1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: XQueryColor.c,v 10.4 86/02/01 15:38:47 tony Rel $ */
   4: /* Copyright    Massachusetts Institute of Technology    1985	*/
   5: 
   6: #include "XlibInternal.h"
   7: XQueryColor (color)
   8:         register Color *color;
   9: {
  10:     register Display *dpy;
  11:     register XReq *req;
  12:     XRep rep;
  13: 
  14:     GetReq (X_QueryColor, 0);
  15:     req->param.u[0] = color->pixel;
  16:     _XReply (dpy, &rep);
  17:     color->red = rep.param.u[0];
  18:         color->green = rep.param.u[1];
  19:         color->blue = rep.param.u[2];
  20: }

Defined functions

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