Utility library w_getpal() Window library
Programming guideline of WinDom

w_setpal()

NAME

w_setpal - restore a screen color palette.

PROTOTYPAGE

void w_setpal( W_COLOR *palette);

PARAMETERS

palette:
buffer describing the color palette or NULL pointer.

DESCRIPTION

w_setpal() restores the screen color palette describing by the parameter palette i.e. this palette is applyed to the screen display.

The buffer is an array of W_COLOR element. W_COLOR is a 3-short integer structure describing the RGB components of a color. The size of the array is given by the app.color global variable.

If the parameter palette is NULL, the desktop palette (app.palette) is used to restore the screen palette.

This function is used by EvntWindom() to handle desktop and window palettes depending on GEM events.

SEE ALSO

w_getpal()