NFB routine to set colormap
void xxxSetColor (
unsigned int cmap,
unsigned int index,
unsigned short r,
unsigned short g,
unsigned short b,
ScreenPtr pScreen ) ;
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 is a machine-dependent colormap number.
is an offset into the colormap.
compose the rgb values to enter in this color map entry.
are 16 bits.
If you have a device that uses 8 bits,
use the most significant 8 bits.
pointer to the X screen structure
Simple implementations can initially ignore this.
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
file rather than hard coding it into the driver directly.
This function is supported for NFB drivers
on all releases of SCO OpenServer 5, SVR5, and AIX 5L.
Driver source file
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005