Home | History | Annotate | Download | only in test

Lines Matching refs:colors

28 	SDL_Color *colors, *cmap;
42 /* Set the display colors -- on a hicolor display this is a no-op */
45 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
47 memcpy(colors, picture->format->palette->colors,
54 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
62 colors[i].r = r<<5;
63 colors[i].g = g<<5;
64 colors[i].b = b<<6;
69 NOTICE("testwin: setting colors\n");
70 if ( ! SDL_SetColors(screen, colors, 0, ncolors) &&
73 "Warning: Couldn't set all of the colors, but SDL will map the image\n"
151 memcpy(cmap, colors, ncolors*sizeof(SDL_Color));
156 memcpy(palcolors, colors, ncolors*sizeof(SDL_Color));
165 colors[c].r =
167 colors[c].g =
169 colors[c].b =
172 SDL_SetColors(screen, colors, 0, ncolors);
178 memcpy(palcolors, colors, ncolors*sizeof(SDL_Color));
188 colors[c].r =
190 colors[c].g =
192 colors[c].b =
195 SDL_SetColors(screen, colors, 0, ncolors);
199 colors[i].r = final.r;
200 colors[i].g = final.g;
201 colors[i].b = final.b;
203 SDL_SetColors(screen, colors, 0, ncolors);
205 memcpy(palcolors, colors, ncolors*sizeof(SDL_Color));
214 colors[c].r =
216 colors[c].g =
218 colors[c].b =
221 SDL_SetColors(screen, colors, 0, ncolors);
230 free(colors); free(cmap);