Modify the colormap (SetColor)
routine in the xxxCmap.c file
sets an entry in your colormap
to the rgb values that are passed to it.
Note the following:
The values passed for red, green, and blue
have 16 bits of precision,
but most graphics hardware specifies
either 6 or 8 bits of precision for
8 bit-per-pixel resolutions.
The color values are therefore shifted down to
the correct precision for the DACs supported by this driver.
If your driver could potentially be used for graphics adapters that have
different specifications for color values,
you should read that value from the grafinfo file,
store it in your Screen Private,
then call it from the graphics driver code.
For mono and static color displays,
this is basically a noop.
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005