# HG changeset patch # User Edgar Simo # Date 1246984122 0 # Node ID 15373e31daff1b705ae74272b9522f89cc37b5a6 # Parent 9d71382713b50c63865b2d9886caf68fe65c56e9 Moved some code around. diff -r 9d71382713b5 -r 15373e31daff test/automated/surface/surface.c --- a/test/automated/surface/surface.c Tue Jul 07 11:25:56 2009 +0000 +++ b/test/automated/surface/surface.c Tue Jul 07 16:28:42 2009 +0000 @@ -325,22 +325,12 @@ SDL_ATbegin( "Blit Test" ); - /* Create the blit surface. */ - face = SDL_LoadBMP("../icon.bmp"); - if (SDL_ATassert( "SDL_CreateLoadBmp", face != NULL)) - return; - - /* Set transparent pixel as the pixel at (0,0) */ - if (face->format->palette) - SDL_SetColorKey(face, (SDL_SRCCOLORKEY | SDL_RLEACCEL), - *(Uint8 *) face->pixels); - /* + /* Create face surface. */ face = SDL_CreateRGBSurfaceFrom( (void*)img_face.pixel_data, img_face.width, img_face.height, 32, img_face.width*4, RMASK, GMASK, BMASK, AMASK ); if (SDL_ATassert( "SDL_CreateRGBSurfaceFrom", face != NULL)) return; - */ /* Create the test surface. */ testsur = SDL_CreateRGBSurface( 0, 80, 60, 32,