IMG.c
changeset 117 e613cf987897
parent 110 23d7437faa1b
child 119 336c49447e0d
     1.1 --- a/IMG.c	Sat Feb 04 04:53:36 2006 +0000
     1.2 +++ b/IMG.c	Sat Feb 04 20:37:17 2006 +0000
     1.3 @@ -96,7 +96,7 @@
     1.4  /* Load an image from an SDL datasource, optionally specifying the type */
     1.5  SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type)
     1.6  {
     1.7 -	int i, start;
     1.8 +	int i;
     1.9  	SDL_Surface *image;
    1.10  
    1.11  	/* Make sure there is something to do.. */
    1.12 @@ -114,11 +114,9 @@
    1.13  	}
    1.14  
    1.15  	/* Detect the type of image being loaded */
    1.16 -	start = SDL_RWtell(src);
    1.17  	image = NULL;
    1.18  	for ( i=0; i < ARRAYSIZE(supported); ++i ) {
    1.19  		if(supported[i].is) {
    1.20 -			SDL_RWseek(src, start, SEEK_SET);
    1.21  			if(!supported[i].is(src))
    1.22  				continue;
    1.23  		} else {
    1.24 @@ -131,7 +129,6 @@
    1.25  		fprintf(stderr, "IMGLIB: Loading image as %s\n",
    1.26  			supported[i].type);
    1.27  #endif
    1.28 -		SDL_RWseek(src, start, SEEK_SET);
    1.29  		image = supported[i].load(src);
    1.30  		if(freesrc)
    1.31  			SDL_RWclose(src);