|
|
1.1 root 1: #include <X/mit-copyright.h>
2:
3: /* $Header: XGetHardColor.c,v 10.5 86/04/22 15:30:21 jg 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->paramu0 = color->red;
17: req->paramu1 = color->green;
18: req->paramu2 = color->blue;
19: status = _XReply (dpy, &rep);
20: if (status)
21: color->pixel = rep.paramu0;
22: return (status);
23: }
24:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.