Lines Matching full:palette
262 #if 0 /* Don't change the current palette - may be used by other programs.
266 /* If we have a palettized surface, create a default palette */
267 if ( SDL_VideoSurface->format->palette ) {
269 SDL_DitherColors(vf->palette->colors, vf->BitsPerPixel);
271 0, vf->palette->ncolors, vf->palette->colors);
539 /* 8-bit shadow surfaces report that they have exclusive palette */
540 if ( SDL_ShadowSurface->format->palette ) {
543 SDL_memcpy(SDL_ShadowSurface->format->palette->colors,
544 SDL_VideoSurface->format->palette->colors,
545 SDL_VideoSurface->format->palette->ncolors*
549 SDL_ShadowSurface->format->palette->colors, depth);
629 /* There's no palette
716 /* If we have a palettized surface, create a default palette */
717 if ( mode->format->palette ) {
719 SDL_DitherColors(vf->palette->colors, vf->BitsPerPixel);
720 video->SetColors(this, 0, vf->palette->ncolors,
721 vf->palette->colors);
889 2. We need a hardware palette and didn't get one.
1049 SDL_Palette *pal = screen->format->palette;
1052 /* simulated 8bpp, use correct physical palette */
1055 /* gamma-corrected palette */
1058 /* physical palette different from logical */
1111 SDL_Palette *pal = screen->format->palette;
1114 /* simulated 8bpp, use correct physical palette */
1117 /* gamma-corrected palette */
1120 /* physical palette different from logical */
1159 SDL_Palette *pal = screen->format->palette;
1168 vidpal = SDL_VideoSurface->format->palette;
1173 * changes to its logical palette so that
1200 * palette. The physical palette does not include the
1202 * but this only happens if we have hardware palette.
1217 pp = screen->format->palette;
1246 correct colors into the video surface palette.
1283 pal = screen->format->palette;
1296 * Logical palette change: The actual screen isn't affected,
1306 * Physical palette change: This doesn't affect the
1311 /* Lazy physical palette allocation */