comparison test/testsprite.c @ 2790:8c9fa61a521c

Both testsprite and testsprite2 use a grey background
author Sam Lantinga <slouken@libsdl.org>
date Wed, 26 Nov 2008 15:52:00 +0000
parents 6bacfecbf27e
children c2d9b1aff59f
comparison
equal deleted inserted replaced
2789:985001797115 2790:8c9fa61a521c
245 while (!velocities[i].x && !velocities[i].y) { 245 while (!velocities[i].x && !velocities[i].y) {
246 velocities[i].x = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED; 246 velocities[i].x = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED;
247 velocities[i].y = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED; 247 velocities[i].y = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED;
248 } 248 }
249 } 249 }
250 background = SDL_MapRGB(screen->format, 0x00, 0x00, 0x00); 250 background = SDL_MapRGB(screen->format, 0xA0, 0xA0, 0xA0);
251 251
252 /* Print out information about our surfaces */ 252 /* Print out information about our surfaces */
253 printf("Screen is at %d bits per pixel\n", screen->format->BitsPerPixel); 253 printf("Screen is at %d bits per pixel\n", screen->format->BitsPerPixel);
254 if ((screen->flags & SDL_HWSURFACE) == SDL_HWSURFACE) { 254 if ((screen->flags & SDL_HWSURFACE) == SDL_HWSURFACE) {
255 printf("Screen is in video memory\n"); 255 printf("Screen is in video memory\n");