DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

SetColor(D3nfb)


SetColor -- NFB routine to set colormap

Synopsis

#include "nfbScrStr.h"

void xxxSetColor ( unsigned int cmap, unsigned int index, unsigned short r, unsigned short g, unsigned short b, ScreenPtr pScreen ) ;

Description

SetColor( ) sets an entry in a PseudoColor colormap. At present, it is the only colormap primitive that is defined for the NFB interface. The arguments are:

cmap
cmap is a machine-dependent colormap number.

index
is an offset into the colormap.

r, g, and b
compose the rgb values to enter in this color map entry. r, g, and b are 16 bits. If you have a device that uses 8 bits, use the most significant 8 bits.

pScreen
pointer to the X screen structure Simple implementations can initially ignore this.

Usage

This routine is optional.

If your driver could be used for graphics adapters that have different specifications for color values, SVR5 and &everest drivers should read those values from the grafinfo(DSP/4dsp) file rather than hard coding it into the driver directly.

Version applicability

This function is supported for NFB drivers on all releases of SCO OpenServer 5, SVR5, and AIX 5L.

Source files


Routine source
None

Driver source file
xxxmap.c

References

nfbScrnPriv(D4nfb)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005