Name
SetPalette -- change display palette (V9.0)
Synopsis
void SetPalette(APTR handle, ULONG *palette, struct hwTagList *tags);
Function
This function is optional and must only be implemented if the HWEXT_DISPLAYADAPTER_MAINLOOP extension bit has been set. See Extension plugins for details. If that is the case, it must change the palette of the display specified by handle to the palette that is passed in the palette argument. The colors in the palette array are passed as raw RGB values.

Note that if you want Hollywood to call this function, you also must set HWDISPTAG_PALETTEMODE to True in your OpenDisplay() implementation and you must set the HWSDAFLAGS_SETPALETTE flag in your call to hw_SetDisplayAdapter(). See hw_SetDisplayAdapter for details.

Inputs
handle
display handle returned by OpenDisplay()
palette
new palette for display
tags
reserved for future use, currently NULL

Show TOC