|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T X
Length: 682 (0x2aa) Types: TextFile Names: »XStoreColor.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z« └─⟦2109abc41⟧ └─⟦this⟧ »./X.V10R4/Xlib/XStoreColor.c«
#include <X/mit-copyright.h> /* $Header: XStoreColor.c,v 10.5 86/04/22 15:25:49 jg Rel $ */ /* Copyright Massachusetts Institute of Technology 1985 */ #include "XlibInternal.h" XStoreColor (def) register Color *def; { register Display *dpy; register XReq *req; ColorDef proto_def; GetReq (X_StoreColors, 0); req->params0 = 1; /* just one color to store */ /* Color structure in library uses int for pixel, but protocol's ColorDef wants a short; thus, data must be copied */ proto_def.pixel = def->pixel; proto_def.red = def->red; proto_def.green = def->green; proto_def.blue = def->blue; Data (dpy, (char *)&proto_def, sizeof (ColorDef)); }