Moved some code around. gsoc2009_unit_tests
authorEdgar Simo <bobbens@gmail.com>
Tue, 07 Jul 2009 16:28:42 +0000
branchgsoc2009_unit_tests
changeset 371915373e31daff
parent 3718 9d71382713b5
child 3720 09bbf9dc41ed
Moved some code around.
test/automated/surface/surface.c
     1.1 --- a/test/automated/surface/surface.c	Tue Jul 07 11:25:56 2009 +0000
     1.2 +++ b/test/automated/surface/surface.c	Tue Jul 07 16:28:42 2009 +0000
     1.3 @@ -325,22 +325,12 @@
     1.4  
     1.5     SDL_ATbegin( "Blit Test" );
     1.6  
     1.7 -   /* Create the blit surface. */
     1.8 -   face = SDL_LoadBMP("../icon.bmp");
     1.9 -   if (SDL_ATassert( "SDL_CreateLoadBmp", face != NULL))
    1.10 -      return;
    1.11 -
    1.12 -   /* Set transparent pixel as the pixel at (0,0) */
    1.13 -   if (face->format->palette)
    1.14 -      SDL_SetColorKey(face, (SDL_SRCCOLORKEY | SDL_RLEACCEL),
    1.15 -            *(Uint8 *) face->pixels);
    1.16 -   /*
    1.17 +   /* Create face surface. */
    1.18     face = SDL_CreateRGBSurfaceFrom( (void*)img_face.pixel_data,
    1.19           img_face.width, img_face.height, 32, img_face.width*4,
    1.20           RMASK, GMASK, BMASK, AMASK );
    1.21     if (SDL_ATassert( "SDL_CreateRGBSurfaceFrom", face != NULL))
    1.22        return;
    1.23 -   */
    1.24  
    1.25     /* Create the test surface. */
    1.26     testsur = SDL_CreateRGBSurface( 0, 80, 60, 32,