Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Moved some code around.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Jul 7, 2009
1 parent feb7204 commit 2e3d757
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/automated/surface/surface.c
Expand Up @@ -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,
Expand Down

0 comments on commit 2e3d757

Please sign in to comment.