Fix TGA loading using FreeImage. Fixes issue 141.

This commit is contained in:
castano 2010-10-13 17:49:16 +00:00
parent 2bd7db4244
commit 5d80fb8219

View File

@ -345,6 +345,9 @@ static int DLL_CALLCONV SeekProc(fi_handle handle, long offset, int origin)
case SEEK_SET :
s->seek(offset);
break;
case SEEK_END :
s->seek(s->size() + offset);
break;
case SEEK_CUR :
s->seek(s->tell() + offset);
break;