This function copies the colors in the specified palette into the system palette. All colors in pal are copied to the system palette. The first palette entry in pal is copied into the system palette at the index specified by first. Therefore all existing entries in the system palette before first will remain unchanged.
For example if the system palete has 50 colors defined, and you use GrSetSystemPalette() to add a 50 color palette. If you specify first as 50, then the resulting system palette will have 100 colors. If you specify first as 20, then you will have a 70 color palette, and the last 30 colors of the original system palette will be overwritten with new colors.
Type | Name | Description |
---|---|---|
GR_COUNT | first | The first palette entry in the system palette to receive new colors from the new palette. |
GR_PALETTE | pal | The new color palette. |