Lines Matching refs:pal
313 Uint8 SDL_FindColor(SDL_Palette *pal, Uint8 r, Uint8 g, Uint8 b)
323 for ( i=0; i<pal->ncolors; ++i ) {
324 rd = pal->colors[i].r - r;
325 gd = pal->colors[i].g - g;
326 bd = pal->colors[i].b - b;
470 SDL_Palette *pal = src->palette;
473 map = (Uint8 *)SDL_malloc(pal->ncolors*bpp);
481 for ( i=0; i<pal->ncolors; ++i ) {
483 pal->colors[i].r, pal->colors[i].g,
484 pal->colors[i].b, alpha);
494 SDL_Palette *pal = dst->palette;
497 but Map1to1 compares it against pal, so we should initialize it. */
503 return(Map1to1(&dithered, pal, identical));