From 2e3d757a53244c4105908668a0e91ab6ee8838b9 Mon Sep 17 00:00:00 2001 From: Edgar Simo Date: Tue, 7 Jul 2009 16:28:42 +0000 Subject: [PATCH] Moved some code around. --- test/automated/surface/surface.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test/automated/surface/surface.c b/test/automated/surface/surface.c index 55dcb67fd..b5374c054 100644 --- a/test/automated/surface/surface.c +++ b/test/automated/surface/surface.c @@ -325,22 +325,12 @@ static void surface_testBlit (void) 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,