Home | History | Annotate | Download | only in video

Lines Matching refs:palette

58 	SDL_Palette *palette;
212 /* Load the palette, if any */
213 palette = (surface->format)->palette;
214 if ( palette ) {
220 SDL_RWread(src, &palette->colors[i].b, 1, 1);
221 SDL_RWread(src, &palette->colors[i].g, 1, 1);
222 SDL_RWread(src, &palette->colors[i].r, 1, 1);
223 palette->colors[i].unused = 0;
227 SDL_RWread(src, &palette->colors[i].b, 1, 1);
228 SDL_RWread(src, &palette->colors[i].g, 1, 1);
229 SDL_RWread(src, &palette->colors[i].r, 1, 1);
230 SDL_RWread(src, &palette->colors[i].unused, 1, 1);
233 palette->ncolors = biClrUsed;
361 if ( saveme->format->palette ) {
437 if ( surface->format->palette ) {
438 biClrUsed = surface->format->palette->ncolors;
457 /* Write the palette (in BGR color order) */
458 if ( surface->format->palette ) {
462 colors = surface->format->palette->colors;
463 ncolors = surface->format->palette->ncolors;