set the palette for subsequent draw operations
int my_setpalette( int n, struct pal_entry *p );
This function sets the palette for subsequent draw operations. The arguments are:
| You don't need to keep a copy of the palette because this function is called whenever the palette is modified. Just keep a pointer to the palette. |
Photon
| Safety: | |
|---|---|
| Interrupt handler | Not applicable |
| Signal handler | Not applicable |
| Thread | Not applicable |