IMG_bmp.c
changeset 151 d2452c2421bd
parent 121 1bf9c0c87374
child 154 201cc5c1b373
     1.1 --- a/IMG_bmp.c	Sun May 14 19:25:05 2006 +0000
     1.2 +++ b/IMG_bmp.c	Sun May 14 20:57:19 2006 +0000
     1.3 @@ -309,6 +309,12 @@
     1.4  	/* Load the palette, if any */
     1.5  	palette = (surface->format)->palette;
     1.6  	if ( palette ) {
     1.7 +		if ( SDL_RWseek(src, fp_offset+14+biSize, SEEK_SET) < 0 ) {
     1.8 +			SDL_Error(SDL_EFSEEK);
     1.9 +			was_error = 1;
    1.10 +			goto done;
    1.11 +		}
    1.12 +
    1.13  		/*
    1.14  		| guich: always use 1<<bpp b/c some bitmaps can bring wrong information
    1.15  		| for colorsUsed