Home | History | Annotate | Download | only in video

Lines Matching refs:palette

58 	SDL_Palette *palette;
231 /* Load the palette, if any */
232 palette = (surface->format)->palette;
233 if ( palette ) {
239 SDL_RWread(src, &palette->colors[i].b, 1, 1);
240 SDL_RWread(src, &palette->colors[i].g, 1, 1);
241 SDL_RWread(src, &palette->colors[i].r, 1, 1);
242 palette->colors[i].unused = 0;
246 SDL_RWread(src, &palette->colors[i].b, 1, 1);
247 SDL_RWread(src, &palette->colors[i].g, 1, 1);
248 SDL_RWread(src, &palette->colors[i].r, 1, 1);
249 SDL_RWread(src, &palette->colors[i].unused, 1, 1);
252 palette->ncolors = biClrUsed;
390 if ( saveme->format->palette ) {
466 if ( surface->format->palette ) {
467 biClrUsed = surface->format->palette->ncolors;
486 /* Write the palette (in BGR color order) */
487 if ( surface->format->palette ) {
491 colors = surface->format->palette->colors;
492 ncolors = surface->format->palette->ncolors;