|
|
1.1 root 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: }
21:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.