showimage.c
changeset 4 b1bb33e907f8
parent 0 76be7dab668c
child 7 e1b6443ffb6b
     1.1 --- a/showimage.c	Thu Aug 10 06:15:57 2000 +0000
     1.2 +++ b/showimage.c	Fri Sep 01 00:45:57 2000 +0000
     1.3 @@ -30,7 +30,7 @@
     1.4  
     1.5  
     1.6  /* Draw a Gimpish background pattern to show transparency in the image */
     1.7 -void draw_background(SDL_Surface *image, SDL_Surface *screen)
     1.8 +void draw_background(SDL_Surface *screen)
     1.9  {
    1.10      Uint8 *dst = screen->pixels;
    1.11      int x, y;
    1.12 @@ -69,7 +69,7 @@
    1.13      }
    1.14  }
    1.15  
    1.16 -main(int argc, char *argv[])
    1.17 +int main(int argc, char *argv[])
    1.18  {
    1.19  	SDL_Surface *screen, *image;
    1.20  	int i, depth;
    1.21 @@ -117,7 +117,7 @@
    1.22  
    1.23  	/* Draw a background pattern if the surface has transparency */
    1.24  	if(image->flags & (SDL_SRCALPHA | SDL_SRCCOLORKEY))
    1.25 -	    draw_background(image, screen);
    1.26 +	    draw_background(screen);
    1.27  
    1.28  	/* Display the image */
    1.29  	SDL_BlitSurface(image, NULL, screen, NULL);