Home | History | Annotate | Download | only in cybergfx

Lines Matching defs:ncolors

50 static int CGX_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
74 Int i, ncolors;
84 ncolors = SDL_Visual->map_entries;
85 for ( i=0; i<ncolors; ++i ) {
86 Uint8 c = (256 * i / ncolors);
93 XStoreColors(GFX_Display, SDL_XColorMap, xcmap, ncolors);
755 int ncolors,i;
761 ncolors=256;
763 ncolors = 1 << screen->format->BitsPerPixel;
765 SDL_XPixels = (Sint32 *)SDL_malloc(ncolors * sizeof(Sint32));
773 for(i=0;i<ncolors;i++)
1235 static int CGX_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors)
1246 xcmap[0]=(ncolors<<16);
1249 // D(bug("Setting %ld colors on an HWPALETTE screen\n",ncolors));
1251 for ( i=0; i<ncolors; i++ ) {
1256 xcmap[ncolors*3+1]=0;
1270 D(bug("Obtaining %ld colors on the screen\n",ncolors));
1273 for ( pixel=0; pixel<this->screen->format->palette->ncolors; ++pixel ) {
1279 for ( i=0; i<this->screen->format->palette->ncolors; ++i ) {
1291 for(i=0;i<ncolors;i++)
1296 // D(bug("Executing XPixel(%lx) remapping: (from %ld, %ld colors) first: r%ld g%ld b%ld\n",SDL_XPixels,firstcolor,ncolors,colors[firstcolor].r,colors[firstcolor].g,colors[firstcolor].b));
1297 for(i=0;i<ncolors;i++)