Home | History | Annotate | Download | only in test

Lines Matching defs:ncolors

27 	int ncolors;
44 ncolors = picture->format->palette->ncolors;
45 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
46 cmap = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
48 ncolors*sizeof(SDL_Color));
53 ncolors = 256;
54 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
55 cmap = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
70 if ( ! SDL_SetColors(screen, colors, 0, ncolors) &&
151 memcpy(cmap, colors, ncolors*sizeof(SDL_Color));
156 memcpy(palcolors, colors, ncolors*sizeof(SDL_Color));
157 for ( i=0; i<ncolors; ++i ) {
164 for ( c=0; c<ncolors; ++c ) {
172 SDL_SetColors(screen, colors, 0, ncolors);
178 memcpy(palcolors, colors, ncolors*sizeof(SDL_Color));
179 for ( i=0; i<ncolors; ++i ) {
187 for ( c=0; c<ncolors; ++c ) {
195 SDL_SetColors(screen, colors, 0, ncolors);
198 for ( i=0; i<ncolors; ++i ) {
203 SDL_SetColors(screen, colors, 0, ncolors);
205 memcpy(palcolors, colors, ncolors*sizeof(SDL_Color));
206 for ( i=0; i<ncolors; ++i ) {
213 for ( c=0; c<ncolors; ++c ) {
221 SDL_SetColors(screen, colors, 0, ncolors);