Fix TGA loading using FreeImage. Fixes issue 141.
This commit is contained in:
parent
2bd7db4244
commit
5d80fb8219
@ -345,6 +345,9 @@ static int DLL_CALLCONV SeekProc(fi_handle handle, long offset, int origin)
|
|||||||
case SEEK_SET :
|
case SEEK_SET :
|
||||||
s->seek(offset);
|
s->seek(offset);
|
||||||
break;
|
break;
|
||||||
|
case SEEK_END :
|
||||||
|
s->seek(s->size() + offset);
|
||||||
|
break;
|
||||||
case SEEK_CUR :
|
case SEEK_CUR :
|
||||||
s->seek(s->tell() + offset);
|
s->seek(s->tell() + offset);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user