IMG_tif.c
changeset 236 cce1251de477
parent 233 fd5471011130
child 237 d1a4fae44bd0
     1.1 --- a/IMG_tif.c	Sun Nov 08 15:58:44 2009 +0000
     1.2 +++ b/IMG_tif.c	Sun Nov 08 17:13:36 2009 +0000
     1.3 @@ -168,9 +168,9 @@
     1.4  	toff_t size;
     1.5  
     1.6  	save_pos = SDL_RWtell((SDL_RWops*)fd);
     1.7 -	SDL_RWseek((SDL_RWops*)fd, 0, SEEK_END);
     1.8 +	SDL_RWseek((SDL_RWops*)fd, 0, RW_SEEK_END);
     1.9          size = SDL_RWtell((SDL_RWops*)fd);
    1.10 -	SDL_RWseek((SDL_RWops*)fd, save_pos, SEEK_SET);
    1.11 +	SDL_RWseek((SDL_RWops*)fd, save_pos, RW_SEEK_SET);
    1.12  	return size;
    1.13  }
    1.14  
    1.15 @@ -196,7 +196,7 @@
    1.16  			is_TIF = 1;
    1.17  		}
    1.18  	}
    1.19 -	SDL_RWseek(src, start, SEEK_SET);
    1.20 +	SDL_RWseek(src, start, RW_SEEK_SET);
    1.21  	return(is_TIF);
    1.22  }
    1.23  
    1.24 @@ -261,7 +261,7 @@
    1.25  	return surface;
    1.26  
    1.27  error:
    1.28 -	SDL_RWseek(src, start, SEEK_SET);
    1.29 +	SDL_RWseek(src, start, RW_SEEK_SET);
    1.30  	if ( surface ) {
    1.31  		SDL_FreeSurface(surface);
    1.32  	}