Searched defs:NUM_COLORS (Results 1 - 1 of 1) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/test/
H A Dgraywin.c12 #define NUM_COLORS 16 macro
14 #define NUM_COLORS 256 macro
36 randc = (rand()%NUM_COLORS);
77 memset(buffer,(i*(NUM_COLORS-1))/screen->h, screen->w * screen->format->BytesPerPixel);
84 gradient=((i*(NUM_COLORS-1))/screen->h);
109 SDL_Color palette[NUM_COLORS];
123 for ( i=0; i<NUM_COLORS; ++i ) {
124 palette[i].r = (NUM_COLORS-1)-i * (256 / NUM_COLORS);
125 palette[i].g = (NUM_COLORS
[all...]

Completed in 36 milliseconds