
9. GRAPHICS DISPLAY
B–61863E–1/06
PMC LIBRARY
252
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_grppalette
[Description]
Sets the all color palette for VGA graphic display.
[Format]
ret = pl_grppalette(p1);
short ret;
long *p1
[Input]
*p1 Palette information
Color information
R value, G value and B value of the color palette are set
respectively as follows. Each value can specify from 0 to 3FH.
Please do not change the setting of palette 0(Please always
input 0).
4 byte 3 byte 2 byte 1 byte
Always 0 B value G value R value
[Output]
______
[Returns]
ret Completion code (–11, –1, 0)
[Remarks]
For the return value, see the item on the completion code types.
This function is effective only in VGA.
9.14
SETTING COLOR
PALETTE FOR VGA
GRAPHIC DISPLAY
0
4
8
56
60
64
P1
Color information of palette 0 (always 0)
Color information of palette 1
Color information of palette 14
Color information of palette 15