Mercurial > sdl-ios-xcode
diff test/automated/surface/surface.c @ 3719:15373e31daff gsoc2009_unit_tests
Moved some code around.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 07 Jul 2009 16:28:42 +0000 |
parents | 9d71382713b5 |
children | 09bbf9dc41ed |
line wrap: on
line diff
--- 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,