GrSetSystemPalette()

Name

GrSetSystemPalette() -- Set the colors of the system palette

Synopsis

void GrSetSystemPalette ( GR_COUNT first , GR_PALETTE * pal );

Description

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.

Parameters

TypeNameDescription
GR_COUNTfirstThe first palette entry in the system palette to receive new colors from the new palette.
GR_PALETTEpalThe new color palette.

See Also

GrGetSystemPalette(), GrFindColor(), GrGetSysColor().