test/testsprite.c
changeset 2790 8c9fa61a521c
parent 2786 6bacfecbf27e
child 2792 c2d9b1aff59f
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");