PRB: Number of Colors for _ERESCOLOR Documented Incorrectly

ID Number: Q72732

6.00 6.00a 6.00ax

MS-DOS

docerr

Summary:

The online help for Microsoft C versions 6.0, 6.0a, and 6.0ax and

QuickC versions 2.5 and 2.51 incorrectly suggests that the _ERESCOLOR

video mode is capable of displaying 64 colors at one time. It is true

that there are 64 colors available in the _ERESCOLOR video mode;

however, only 16 colors can be displayed on the screen at one time.

The GRAPH.H header file correctly indicates that only 16 colors can be

displayed.

More Information:

The information for the _ERESCOLOR video mode can be found by

searching in the online help for "_ERESCOLOR". You will notice that

the number of colors shown for the _ERESCOLOR video mode is listed as

64.

The EGA monitor is capable of displaying 64 different colors but not

all at one time; it can only use a palette of 16 colors. Therefore, to

display a particular color, you must ensure it is one of the 16 colors

in the current palette. The C _remappalette() or _remapallpalette()

functions are used for this purpose.

For more information on _remappalette() or _remapallpalette(), see the

online help or printed documentation supplied with your version of the

compiler.

Additional reference words: 2.50 6.00 6.00a 6.00ax