IMG_bmp.c
changeset 236 cce1251de477
parent 202 8e1d88c68bda
child 237 d1a4fae44bd0
     1.1 --- a/IMG_bmp.c	Sun Nov 08 15:58:44 2009 +0000
     1.2 +++ b/IMG_bmp.c	Sun Nov 08 17:13:36 2009 +0000
     1.3 @@ -47,7 +47,7 @@
     1.4  			is_BMP = 1;
     1.5  		}
     1.6  	}
     1.7 -	SDL_RWseek(src, start, SEEK_SET);
     1.8 +	SDL_RWseek(src, start, RW_SEEK_SET);
     1.9  	return(is_BMP);
    1.10  }
    1.11  
    1.12 @@ -70,7 +70,7 @@
    1.13      bfCount = SDL_ReadLE16(src);
    1.14      if ((bfReserved == 0) && (bfType == type) && (bfCount != 0)) 
    1.15      	is_ICOCUR = 1;
    1.16 -	SDL_RWseek(src, start, SEEK_SET);
    1.17 +	SDL_RWseek(src, start, RW_SEEK_SET);
    1.18  
    1.19  	return (is_ICOCUR);
    1.20  }
    1.21 @@ -361,7 +361,7 @@
    1.22  	/* Load the palette, if any */
    1.23  	palette = (surface->format)->palette;
    1.24  	if ( palette ) {
    1.25 -		if ( SDL_RWseek(src, fp_offset+14+biSize, SEEK_SET) < 0 ) {
    1.26 +		if ( SDL_RWseek(src, fp_offset+14+biSize, RW_SEEK_SET) < 0 ) {
    1.27  			SDL_Error(SDL_EFSEEK);
    1.28  			was_error = SDL_TRUE;
    1.29  			goto done;
    1.30 @@ -393,7 +393,7 @@
    1.31  	}
    1.32  
    1.33  	/* Read the surface pixels.  Note that the bmp image is upside down */
    1.34 -	if ( SDL_RWseek(src, fp_offset+bfOffBits, SEEK_SET) < 0 ) {
    1.35 +	if ( SDL_RWseek(src, fp_offset+bfOffBits, RW_SEEK_SET) < 0 ) {
    1.36  		SDL_Error(SDL_EFSEEK);
    1.37  		was_error = SDL_TRUE;
    1.38  		goto done;
    1.39 @@ -489,7 +489,7 @@
    1.40  done:
    1.41  	if ( was_error ) {
    1.42  		if ( src ) {
    1.43 -			SDL_RWseek(src, fp_offset, SEEK_SET);
    1.44 +			SDL_RWseek(src, fp_offset, RW_SEEK_SET);
    1.45  		}
    1.46  		if ( surface ) {
    1.47  			SDL_FreeSurface(surface);