[−][src]Function sdl2_sys::SDL_SetPaletteColors
pub unsafe extern "C" fn SDL_SetPaletteColors(
palette: *mut SDL_Palette,
colors: *const SDL_Color,
firstcolor: c_int,
ncolors: c_int
) -> c_int
\brief Set a range of colors in a palette.
\param palette The palette to modify. \param colors An array of colors to copy into the palette. \param firstcolor The index of the first palette entry to modify. \param ncolors The number of entries to modify.
\return 0 on success, or -1 if not all of the colors could be set.