Home
last modified time | relevance | path

Searched refs:testSurface (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/SDL2/test/
A Dtestautomation_surface.c28 static SDL_Surface *testSurface = NULL; variable
32 #define TEST_SURFACE_WIDTH testSurface->w
33 #define TEST_SURFACE_HEIGHT testSurface->h
60 if (testSurface != NULL) { in _surfaceSetUp()
75 SDL_FreeSurface(testSurface); in _surfaceTearDown()
76 testSurface = NULL; in _surfaceTearDown()
88 color = SDL_MapRGBA( testSurface->format, 0, 0, 0, 0); in _clearTestSurface()
90 ret = SDL_FillRect( testSurface, NULL, color); in _clearTestSurface()
113 if (testSurface == NULL) return; in _testBlitBlendMode()
143 ni = testSurface->w - face->w; in _testBlitBlendMode()
[all …]
A Dtestautomation_render.c997 SDL_Surface *testSurface; in _compare() local
1013testSurface = SDL_CreateRGBSurfaceFrom(pixels, TESTRENDER_SCREEN_W, TESTRENDER_SCREEN_H, 32, TESTR… in _compare()
1015 …SDLTest_AssertCheck(testSurface != NULL, "Verify result from SDL_CreateRGBSurfaceFrom is not NULL"… in _compare()
1018 result = SDLTest_CompareSurfaces( testSurface, referenceSurface, allowable_error ); in _compare()
1023 SDL_FreeSurface(testSurface); in _compare()

Completed in 8 milliseconds