IMG_tga.c
changeset 236 cce1251de477
parent 186 5fbbeabf647f
child 237 d1a4fae44bd0
     1.1 --- a/IMG_tga.c	Sun Nov 08 15:58:44 2009 +0000
     1.2 +++ b/IMG_tga.c	Sun Nov 08 17:13:36 2009 +0000
     1.3 @@ -189,7 +189,7 @@
     1.4          goto unsupported;
     1.5      }
     1.6      
     1.7 -    SDL_RWseek(src, hdr.infolen, SEEK_CUR); /* skip info field */
     1.8 +    SDL_RWseek(src, hdr.infolen, RW_SEEK_CUR); /* skip info field */
     1.9  
    1.10      w = LE16(hdr.width);
    1.11      h = LE16(hdr.height);
    1.12 @@ -235,7 +235,7 @@
    1.13  		SDL_SetColorKey(img, SDL_SRCCOLORKEY, ckey);
    1.14  	} else {
    1.15  	    /* skip unneeded colormap */
    1.16 -	    SDL_RWseek(src, palsiz, SEEK_CUR);
    1.17 +	    SDL_RWseek(src, palsiz, RW_SEEK_CUR);
    1.18  	}
    1.19      }
    1.20  
    1.21 @@ -312,7 +312,7 @@
    1.22      error = "Unsupported TGA format";
    1.23  
    1.24  error:
    1.25 -    SDL_RWseek(src, start, SEEK_SET);
    1.26 +    SDL_RWseek(src, start, RW_SEEK_SET);
    1.27      if ( img ) {
    1.28          SDL_FreeSurface(img);
    1.29      }