Lines Matching refs:pal
1027 SDL_Palette *pal = screen->format->palette;
1029 if ( pal && !(SDL_VideoSurface->flags & SDL_HWPALETTE) ) {
1031 saved_colors = pal->colors;
1034 pal->colors = video->gammacols;
1037 pal->colors = video->physpal->colors;
1056 pal->colors = saved_colors;
1089 SDL_Palette *pal = screen->format->palette;
1091 if ( pal && !(SDL_VideoSurface->flags & SDL_HWPALETTE) ) {
1093 saved_colors = pal->colors;
1096 pal->colors = video->gammacols;
1099 pal->colors = video->physpal->colors;
1119 pal->colors = saved_colors;
1137 SDL_Palette *pal = screen->format->palette;
1140 if ( colors != (pal->colors + firstcolor) ) {
1141 SDL_memcpy(pal->colors + firstcolor, colors,
1245 SDL_Palette *pal;
1261 pal = screen->format->palette;
1262 if( !pal ) {
1296 pp->ncolors = pal->ncolors;
1302 SDL_memcpy(pp->colors, pal->colors, size);