Annotation of 43BSDTahoe/new/X/Xlib/XQueryColor.c, revision 1.1

1.1     ! root        1: #include <X/mit-copyright.h>
        !             2: 
        !             3: /* $Header: XQueryColor.c,v 10.5 86/04/22 15:22:55 jg 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->paramu0 = color->pixel;
        !            16:        _XReply (dpy, &rep);
        !            17:        color->red = rep.paramu0;
        !            18:        color->green = rep.paramu1;
        !            19:        color->blue = rep.paramu2;
        !            20: }
        !            21: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.