1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: XGetHardColor.c,v 10.4 86/02/01 15:34:57 tony Rel $ */
   4: /* Copyright    Massachusetts Institute of Technology    1985	*/
   5: 
   6: #include "XlibInternal.h"
   7: Status XGetHardwareColor (color)
   8:     register Color *color;
   9: {
  10:     register Display *dpy;
  11:     register XReq *req;
  12:     XRep rep;
  13:     Status status;
  14: 
  15:     GetReq (X_GetColor, 0);
  16:     req->param.u[0] = color->red;
  17:     req->param.u[1] = color->green;
  18:     req->param.u[2] = color->blue;
  19:     status = _XReply (dpy, &rep);
  20:     if (status)
  21:         color->pixel = rep.param.u[0];
  22:     return (status);
  23: }
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 769
Valid CSS Valid XHTML 1.0 Strict