return TEST_COMPLETED;
}
-int surface_testBlitScaled(void *arg)
-{
- SDL_Surface* compareSurface;
- int ret;
- SDL_Rect compareSurfaceRect, srcSurfaceRect;
- compareSurfaceRect.x = 0;
- compareSurfaceRect.y = 0;
- compareSurfaceRect.w = testSurface->w;
- compareSurfaceRect.h = testSurface->h;
-
- srcSurfaceRect.x = 1;
- srcSurfaceRect.y = 1;
- srcSurfaceRect.w = testSurface->w -1;
- srcSurfaceRect.h = testSurface->h - 1;
- compareSurface = SDL_LoadBMP("res/sample.bmp");
- ret = SDL_BlitScaled(testSurface, NULL, compareSurface, &compareSurfaceRect);
-
- SDLTest_AssertCheck(ret == 0, "Validate result from SDL_BlitScaled, expected: 0, got: %i", ret);
- //compareSurface = SDL_LoadBMP("res/sample.bmp");
- //ret = SDL_LowerBlitScaled(testSurface, NULL, compareSurface, &compareSurfaceRect);
-
-
- //SDLTest_AssertCheck(ret == 0, "Validate result from SDL_LowerBlitScaled, expected: 0, got: %i && the error is %s", ret, SDL_GetError());
- //SDL_FreeSurface(compareSurface);
-
- return TEST_COMPLETED;
-}
/**
* @brief Tests some blitting routines with color mod
*/
static const SDLTest_TestCaseReference surfaceTest12 =
{ (SDLTest_TestCaseFp)surface_testBlitBlendMod, "surface_testBlitBlendMod", "Tests blitting routines with mod blending mode.", TEST_ENABLED};
-static const SDLTest_TestCaseReference surfaceTest13 =
- { (SDLTest_TestCaseFp)surface_testBlitScaled, "surface_testBlitScaled", "Tests blitting scaled.", TEST_ENABLED};
/* Sequence of Surface test cases */
static const SDLTest_TestCaseReference *surfaceTests[] = {
&surfaceTest1, &surfaceTest2, &surfaceTest3, &surfaceTest4, &surfaceTest5,
&surfaceTest6, &surfaceTest7, &surfaceTest8, &surfaceTest9, &surfaceTest10,
- &surfaceTest11, &surfaceTest12, &surfaceTest13 ,NULL
+ &surfaceTest11, &surfaceTest12, NULL
};
/* Surface test suite (global) */