IMG_xxx.c
changeset 368 8a61842d00ce
parent 347 ad5034cad524
child 465 e8573815cc1f
     1.1 --- a/IMG_xxx.c	Thu Apr 25 00:22:51 2013 -0700
     1.2 +++ b/IMG_xxx.c	Tue May 21 21:24:32 2013 -0700
     1.3 @@ -30,44 +30,44 @@
     1.4  /* See if an image is contained in a data source */
     1.5  int IMG_isXXX(SDL_RWops *src)
     1.6  {
     1.7 -	int start;
     1.8 -	int is_XXX;
     1.9 +    int start;
    1.10 +    int is_XXX;
    1.11  
    1.12 -	if ( !src )
    1.13 -		return 0;
    1.14 -	start = SDL_RWtell(src);
    1.15 -	is_XXX = 0;
    1.16 +    if ( !src )
    1.17 +        return 0;
    1.18 +    start = SDL_RWtell(src);
    1.19 +    is_XXX = 0;
    1.20  
    1.21 -	/* Detect the image here */
    1.22 +    /* Detect the image here */
    1.23  
    1.24 -	SDL_RWseek(src, start, RW_SEEK_SET);
    1.25 -	return(is_XXX);
    1.26 +    SDL_RWseek(src, start, RW_SEEK_SET);
    1.27 +    return(is_XXX);
    1.28  }
    1.29  
    1.30  /* Load a XXX type image from an SDL datasource */
    1.31  SDL_Surface *IMG_LoadXXX_RW(SDL_RWops *src)
    1.32  {
    1.33 -	int start;
    1.34 -	const char *error = NULL;
    1.35 -	SDL_Surface *surface = NULL;
    1.36 +    int start;
    1.37 +    const char *error = NULL;
    1.38 +    SDL_Surface *surface = NULL;
    1.39  
    1.40 -	if ( !src ) {
    1.41 -		/* The error message has been set in SDL_RWFromFile */
    1.42 -		return NULL;
    1.43 -	}
    1.44 -	start = SDL_RWtell(src);
    1.45 +    if ( !src ) {
    1.46 +        /* The error message has been set in SDL_RWFromFile */
    1.47 +        return NULL;
    1.48 +    }
    1.49 +    start = SDL_RWtell(src);
    1.50  
    1.51 -	/* Load the image here */
    1.52 +    /* Load the image here */
    1.53  
    1.54 -	if ( error ) {
    1.55 -		SDL_RWseek(src, start, RW_SEEK_SET);
    1.56 -		if ( surface ) {
    1.57 -			SDL_FreeSurface(surface);
    1.58 -			surface = NULL;
    1.59 -		}
    1.60 -		IMG_SetError(error);
    1.61 -	}
    1.62 -	return surface;
    1.63 +    if ( error ) {
    1.64 +        SDL_RWseek(src, start, RW_SEEK_SET);
    1.65 +        if ( surface ) {
    1.66 +            SDL_FreeSurface(surface);
    1.67 +            surface = NULL;
    1.68 +        }
    1.69 +        IMG_SetError(error);
    1.70 +    }
    1.71 +    return surface;
    1.72  }
    1.73  
    1.74  #else
    1.75 @@ -75,13 +75,13 @@
    1.76  /* See if an image is contained in a data source */
    1.77  int IMG_isXXX(SDL_RWops *src)
    1.78  {
    1.79 -	return(0);
    1.80 +    return(0);
    1.81  }
    1.82  
    1.83  /* Load a XXX type image from an SDL datasource */
    1.84  SDL_Surface *IMG_LoadXXX_RW(SDL_RWops *src)
    1.85  {
    1.86 -	return(NULL);
    1.87 +    return(NULL);
    1.88  }
    1.89  
    1.90  #endif /* LOAD_XXX */