changeset 1329:bc67bbf87818

Seek back to start on error
author Sam Lantinga <slouken@libsdl.org>
date Sat, 04 Feb 2006 22:01:44 +0000
parents 27ddb06a0bca
children 450721ad5436
files src/video/SDL_bmp.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_bmp.c	Sat Feb 04 16:29:22 2006 +0000
+++ b/src/video/SDL_bmp.c	Sat Feb 04 22:01:44 2006 +0000
@@ -318,6 +318,9 @@
 	}
 done:
 	if ( was_error ) {
+		if ( src ) {
+			SDL_RWseek(src, fp_offset, SEEK_SET);
+		}
 		if ( surface ) {
 			SDL_FreeSurface(surface);
 		}