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