Lines Matching refs:screen
46 int RunBlitTests(SDL_Surface *screen, SDL_Surface *bmp, int blitcount) in RunBlitTests() argument
53 maxx = (int)screen->w - bmp->w + 1; in RunBlitTests()
54 maxy = (int)screen->h - bmp->h + 1; in RunBlitTests()
69 SDL_BlitSurface(bmp, NULL, screen, &dst); in RunBlitTests()
71 SDL_Flip(screen); in RunBlitTests()
77 int RunModeTests(SDL_Surface *screen) in RunModeTests() argument
100 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, r, g, b)); in RunModeTests()
101 SDL_Flip(screen); in RunModeTests()
108 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, r, g, b)); in RunModeTests()
109 SDL_Flip(screen); in RunModeTests()
116 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, r, g, b)); in RunModeTests()
117 SDL_Flip(screen); in RunModeTests()
129 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0)); in RunModeTests()
130 SDL_Flip(screen); in RunModeTests()
148 frames = RunBlitTests(screen, bmp, NUM_BLITS); in RunModeTests()
158 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0)); in RunModeTests()
159 SDL_Flip(screen); in RunModeTests()
179 frames = RunBlitTests(screen, bmpcc, NUM_BLITS); in RunModeTests()
189 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0)); in RunModeTests()
190 SDL_Flip(screen); in RunModeTests()
210 frames = RunBlitTests(screen, bmp, NUM_BLITS); in RunModeTests()
220 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0)); in RunModeTests()
221 SDL_Flip(screen); in RunModeTests()
241 frames = RunBlitTests(screen, bmpcc, NUM_BLITS); in RunModeTests()
251 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0)); in RunModeTests()
252 SDL_Flip(screen); in RunModeTests()
277 frames = RunBlitTests(screen, bmp, NUM_BLITS); in RunModeTests()
288 SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0)); in RunModeTests()
289 SDL_Flip(screen); in RunModeTests()
315 frames = RunBlitTests(screen, bmpcc, NUM_BLITS); in RunModeTests()
351 SDL_Surface *screen; in RunVideoTests() local
365 screen = SDL_SetVideoMode(mode_list[i].w, in RunVideoTests()
369 if ( ! screen ) { in RunVideoTests()
373 if ( (screen->flags & FLAG_MASK) != flags[j] ) { in RunVideoTests()
375 PrintFlags(screen->flags); in RunVideoTests()
379 if ( ! RunModeTests(screen) ) { in RunVideoTests()