Utility library Galloc() w_setpal()
Programming guideline of WinDom

w_getpal()

NAME

w_getpal - save in a buffer the current screen color palette.

PROTOTYPAGE

void w_getpal( W_COLOR *palette);

PARAMETERS

palette:
buffer describing the color palette or NULL pointer.

DESCRIPTION

w_getpal() saves in a buffer the current screen color palette. 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 keep the current screen color palette.

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

SEE ALSO

w_setpal()