
------------------------------------------------------------------------------
1.20 Get color palette of CNC screen. <Main>
------------------------------------------------------------------------------
[Name]
crt_getcncpalette
[Syntax]
#include <crt.h>
int crt_getcncpalette( unsigned long *cnccol ) ;
[Arguments]
cnccol Color palette table of CNC screen. (32 elements)
[Return]
Returns zero if successful. If any error (one of following cases),
returns non-zero value.
- Not VGA display device.
[Description]
Gets the color palette setting values of the CNC screen.
This function is used to display the user's screen with the same
color as the CNC's screen or to get the colors of the base CNC screen
by the window task.
The color palette values of the CNC screen are stored in "cnccol" as
follows
cnccol[0] - cnccol[15] Color palette No.0 through 15
for character.
cnccol[16] - cnccol[31] Color palette No.0 through 15
for graphics.
The format of color value is same as "crt_setpalette" function. The
color value got by this function is used in "crt_setallpalette" and
"_remapallpalette" function as it is, like this;
crt_setallpalette( &cnccol[0] ) ;
_remapallpalette( &cnccol[16] ) ;