From 092de616a26fab63eddcfdbf51a05a16553db51c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 22 May 2004 21:36:56 +0000 Subject: [PATCH] fix GIF loading (oops) --- stepmania/src/RageSurface_Load_GIF.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageSurface_Load_GIF.cpp b/stepmania/src/RageSurface_Load_GIF.cpp index cf5a7aeae1..fd1062be8f 100644 --- a/stepmania/src/RageSurface_Load_GIF.cpp +++ b/stepmania/src/RageSurface_Load_GIF.cpp @@ -186,15 +186,15 @@ RageSurface::OpenResult RageSurface_Load_GIF( const CString &sPath, SDL_Surface memcpy( LocalColorMap, GlobalColorMap, sizeof(LocalColorMap) ); } - SDL_Surface *image = ReadImage( f, LM_to_uint(buf[4], buf[5]), LM_to_uint(buf[6], buf[7]), + ret = ReadImage( f, LM_to_uint(buf[4], buf[5]), LM_to_uint(buf[6], buf[7]), LocalColorMap, BitSet(buf[8], INTERLACE), imageCount != imageNumber ); - if( !image ) + if( !ret ) continue; if( transparency != -1 ) - mySDL_AddColorKey( image, transparency ); + mySDL_AddColorKey( ret, transparency ); return RageSurface::OPEN_OK; }