Home | History | Annotate | Download | only in test

Lines Matching refs:palette

4  * A simple test of runtime palette modification for animation
79 /* set the palette to the logical screen palette so that blits
81 SDL_SetColors(bg, screen->format->palette->colors, 0, 256);
112 /* copy palette */
113 SDL_SetColors(z, s->format->palette->colors,
114 0, s->format->palette->ncolors);
169 /* Ask explicitly for 8bpp and a hardware palette */
183 boatcols = boat[0]->format->palette->ncolors;
189 * First set the physical screen palette to black, so the user won't
196 * Proper palette management is important when playing games with the
197 * colormap. We have divided the palette as follows:
203 boat[0]->format->palette->colors, 0, boatcols);
207 * Now the logical screen palette is set, and will remain unchanged.
208 * The boats already have the same palette so fast blits can be used.
210 memcpy(cmap, screen->format->palette->colors, 256 * sizeof(SDL_Color));
288 /* cycle wave palette */
293 /* Fade the entire palette in/out */
311 /* Fade using direct palette manipulation (best) */
312 memcpy(cmap, screen->format->palette->colors,