Moved some code around. gsoc2009_unit_tests
authorEdgar Simo <bobbens@gmail.com>
Tue, 07 Jul 2009 16:28:42 +0000
branchgsoc2009_unit_tests
changeset 3719 15373e31daff
parent 3718 9d71382713b5
child 3720 09bbf9dc41ed
Moved some code around.
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,