Home | History | Annotate | Download | only in test

Lines Matching defs:picture

24 	SDL_Surface *picture;
34 fprintf(stderr, "Loading picture: %s\n", bmpfile);
35 picture = SDL_LoadBMP(bmpfile);
36 if ( picture == NULL ) {
43 if ( picture->format->palette ) {
44 ncolors = picture->format->palette->ncolors;
47 memcpy(colors, picture->format->palette->colors,
94 /* Display the picture */
98 fprintf(stderr, "Converting picture\n");
99 displayfmt = SDL_DisplayFormat(picture);
105 SDL_FreeSurface(picture);
106 picture = displayfmt;
109 (picture->flags&SDL_HWSURFACE) ? "video" : "system");
110 centered = (screen->w - picture->w)/2;
114 dest.y = (screen->h - picture->h)/2;
115 dest.w = picture->w;
116 dest.h = picture->h;
121 if ( SDL_BlitSurface(picture, NULL, screen, &update) < 0 ) {
228 /* Free the picture and return */
229 SDL_FreeSurface(picture);