DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T X

⟦d8d652836⟧ TextFile

    Length: 682 (0x2aa)
    Types: TextFile
    Names: »XStoreColor.c«

Derivation

└─⟦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« 

TextFile

#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));
}