# HG changeset patch # User Sam Lantinga # Date 1227761494 0 # Node ID c2d9b1aff59f0aa007eef12fa6cf2546c68577fb # Parent 8133d1d278da614f8c9c3b184ec0d5b972bffb3d Show the grey background first before starting to blit sprites diff -r 8133d1d278da -r c2d9b1aff59f test/testsprite.c --- a/test/testsprite.c Wed Nov 26 21:59:35 2008 +0000 +++ b/test/testsprite.c Thu Nov 27 04:51:34 2008 +0000 @@ -247,7 +247,11 @@ velocities[i].y = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED; } } + + /* Clear the background to grey */ background = SDL_MapRGB(screen->format, 0xA0, 0xA0, 0xA0); + SDL_FillRect(screen, NULL, background); + SDL_Flip(screen); /* Print out information about our surfaces */ printf("Screen is at %d bits per pixel\n", screen->format->BitsPerPixel);