Home | History | Annotate | Download | only in x11

Lines Matching defs:ncolors

66 static int X11_SetColors(_THIS, int firstcolor, int ncolors,
987 int ncolors;
990 ncolors = SDL_Visual->map_entries;
991 SDL_XPixels = SDL_malloc(ncolors * sizeof(int));
996 SDL_memset(SDL_XPixels, 0, ncolors * sizeof(*SDL_XPixels));
1376 int X11_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors)
1388 xcmap = SDL_stack_alloc(XColor, ncolors);
1391 for ( i=0; i<ncolors; ++i ) {
1398 XStoreColors(GFX_Display, SDL_XColorMap, xcmap, ncolors);
1416 int nc = this->screen->format->palette->ncolors;
1420 for(i = 0; i < ncolors; i++) {
1430 want = SDL_stack_alloc(SDL_Color, ncolors);
1431 reject = SDL_stack_alloc(SDL_Color, ncolors);
1432 SDL_memcpy(want, colors + firstcolor, ncolors * sizeof(SDL_Color));
1435 SDL_memset(colors + firstcolor, 0, ncolors * sizeof(SDL_Color));
1438 for(i = 0; i < ncolors; i++) {
1469 int i, ncolors;
1479 ncolors = SDL_Visual->map_entries;
1480 for ( i=0; i<ncolors; ++i ) {
1481 Uint8 c = (256 * i / ncolors);
1488 XStoreColors(GFX_Display, SDL_XColorMap, xcmap, ncolors);