Home | History | Annotate | Download | only in test

Lines Matching refs:testSurface

21 static SDL_Surface *testSurface = NULL;
25 #define TEST_SURFACE_WIDTH testSurface->w
26 #define TEST_SURFACE_HEIGHT testSurface->h
51 testSurface = SDL_CreateRGBSurface(SDL_SWSURFACE, referenceSurface->w, referenceSurface->h, 32, rmask, gmask, bmask, amask);
52 SDLTest_AssertCheck(testSurface != NULL, "Check that testSurface is not NULL");
53 if (testSurface != NULL) {
55 result = SDL_SetSurfaceBlendMode(testSurface, blendMode);
57 result = SDL_GetSurfaceBlendMode(testSurface, &currentBlendMode);
68 SDL_FreeSurface(testSurface);
69 testSurface = NULL;
81 color = SDL_MapRGBA( testSurface->format, 0, 0, 0, 0);
83 ret = SDL_FillRect( testSurface, NULL, color);
105 SDLTest_AssertCheck(testSurface != NULL, "Verify testSurface is not NULL");
106 if (testSurface == NULL) return;
136 ni = testSurface->w - face->w;
137 nj = testSurface->h - face->h;
182 ret = SDL_BlitSurface( face, NULL, testSurface, &rect );
278 rface = SDL_ConvertSurface( face, testSurface->format, 0 );
412 ret = SDLTest_CompareSurfaces( testSurface, compareSurface, 0 );
435 ret = SDLTest_CompareSurfaces( testSurface, compareSurface, 0 );
458 ret = SDLTest_CompareSurfaces( testSurface, compareSurface, 0 );
482 ret = SDLTest_CompareSurfaces( testSurface, compareSurface, 0 );
505 ret = SDLTest_CompareSurfaces( testSurface, compareSurface, 0 );
528 ret = SDLTest_CompareSurfaces( testSurface, compareSurface, 0 );
551 ret = SDLTest_CompareSurfaces( testSurface, compareSurface, 0 );
574 ret = SDLTest_CompareSurfaces( testSurface, compareSurface, 0 );