Lines Matching refs:screen

47 void ClearScreen(SDL_Surface *screen)  in ClearScreen()  argument
51 if ( SDL_LockSurface(screen) == 0 ) { in ClearScreen()
54 gray1 = SDL_MapRGB(screen->format, 64, 64, 64); in ClearScreen()
55 gray2 = SDL_MapRGB(screen->format, 32, 32, 32); in ClearScreen()
56 pixels = (Uint8 *)screen->pixels; in ClearScreen()
57 for ( i=0; i<screen->h; ++i ) { in ClearScreen()
59 memset(pixels, gray1, screen->w*screen->format->BytesPerPixel); in ClearScreen()
61 memset(pixels, gray2, screen->w*screen->format->BytesPerPixel); in ClearScreen()
63 pixels += screen->pitch; in ClearScreen()
65 SDL_UnlockSurface(screen); in ClearScreen()
70 void Draw(SDL_Surface *screen) in Draw() argument
79 int width_half = screen->w/2; in Draw()
80 int height_half = screen->h/2; in Draw()
143 ClearScreen(screen); in Draw()
168 SDL_BlitSurface(texture_target1, NULL, screen, &dest); in Draw()
175 SDL_BlitSurface(texture_target2, NULL, screen, &dest); in Draw()
178 …rectangleColor(screen, width_half-256-10-1, height_half-256/2-1, width_half-256-10-1+257, height_h… in Draw()
179 …rectangleColor(screen, width_half+10-1, height_half-256/2-1, width_half+10-1+257, height_half-256/… in Draw()
180 …stringColor(screen, width_half-256-10-1, height_half-256/2-1-36, " SDL Standard Blitter ",… in Draw()
181 …stringColor(screen, width_half-256-10-1, height_half-256/2-1-24, "Image --sdlBlit--> Target1",… in Draw()
182 …stringColor(screen, width_half-256-10-1, height_half-256/2-1-12, "Target1 --sdlBlit--> Screen", … in Draw()
183 …stringColor(screen, width_half+10-1, height_half-256/2-1-36, " SDL_gfx Compositing Blitter", text_… in Draw()
184 …stringColor(screen, width_half+10-1, height_half-256/2-1-24, "Image --gfxBlit--> Target2", tex… in Draw()
185 …stringColor(screen, width_half+10-1, height_half-256/2-1-12, "Target2 --sdlBlit--> Screen", text… in Draw()
187 …stringColor(screen, width_half-256-10-1, height_half-256/2-1-60, "gfxBlitRGBA Demo: Target1/2 A=64… in Draw()
190 SDL_Flip(screen); in Draw()
201 SDL_Surface *screen; in main() local
276 screen = SDL_SetVideoMode(w, h, desired_bpp, video_flags); in main()
277 if ( screen == NULL ) { in main()
285 screen->w, screen->h, screen->format->BitsPerPixel); in main()
287 (screen->flags&SDL_HWSURFACE) ? "video" : "system"); in main()
290 if ( screen->flags & SDL_DOUBLEBUF ) { in main()
298 Draw (screen); in main()