|
|
|
|
MGL_haveWidePalette
Tests whether the palette for a device context uses an 8-bit wide palette.
Declaration
ibool MGLAPI MGL_haveWidePalette(
MGLDC *dc)
Prototype In
mgraph.h
Parameters
dc |
Display device context of interest. |
Return Value
True if palette is 8 bits wide, false if 6 bits wide.
Description
This function will return true if the display device context is using an 8-bit per primary hardware palette, or false if it is using a 6-bit per primary hardware palette. The original VGA standard only supports 6-bits per primary for the color palette, giving you the selection of 256 colors out of 256,000 for 8bpp modes. However more modern controllers provide support for 8-bits per primary, giving you a selection of 256 colors out of a total 16.7 million for 8bpp modes.
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com