• Home
  • Raw
  • Download

Lines Matching refs:screen

21 void DrawPict(SDL_Surface *screen, char *bmpfile,  in DrawPict()  argument
70 if ( ! SDL_SetColors(screen, colors, 0, ncolors) && in DrawPict()
71 (screen->format->palette != NULL) ) { in DrawPict()
79 if ( SDL_LockSurface(screen) == 0 ) { in DrawPict()
83 black = SDL_MapRGB(screen->format, 0, 0, 0); in DrawPict()
84 pixels = (Uint8 *)screen->pixels; in DrawPict()
85 for ( i=0; i<screen->h; ++i ) { in DrawPict()
87 screen->w*screen->format->BytesPerPixel); in DrawPict()
88 pixels += screen->pitch; in DrawPict()
90 SDL_UnlockSurface(screen); in DrawPict()
91 SDL_UpdateRect(screen, 0, 0, 0, 0); in DrawPict()
110 centered = (screen->w - picture->w)/2; in DrawPict()
114 dest.y = (screen->h - picture->h)/2; in DrawPict()
121 if ( SDL_BlitSurface(picture, NULL, screen, &update) < 0 ) { in DrawPict()
126 SDL_Flip(screen); in DrawPict()
128 SDL_UpdateRects(screen, 1, &update); in DrawPict()
133 if ( SDL_SaveBMP(screen, "screen.bmp") < 0 ) in DrawPict()
172 SDL_SetColors(screen, colors, 0, ncolors); in DrawPict()
195 SDL_SetColors(screen, colors, 0, ncolors); in DrawPict()
203 SDL_SetColors(screen, colors, 0, ncolors); in DrawPict()
221 SDL_SetColors(screen, colors, 0, ncolors); in DrawPict()
236 SDL_Surface *screen; in main() local
346 screen = SDL_SetVideoMode(w, h, desired_bpp, video_flags); in main()
347 if ( screen == NULL ) { in main()
353 screen->flags & SDL_FULLSCREEN ? " fullscreen" : "", in main()
354 screen->w, screen->h, screen->format->BitsPerPixel); in main()
356 (screen->flags&SDL_HWSURFACE) ? "video" : "system"); in main()
357 if ( screen->flags & SDL_DOUBLEBUF ) { in main()
368 DrawPict(screen, argv[1], speedy, flip, nofade); in main()
372 DrawPict(screen, argv[1], speedy, flip, nofade); in main()