[Scummvm-cvs-logs] SF.net SVN: scummvm:[53908] scummvm/trunk/engines/toon/anim.cpp
sylvaintv at users.sourceforge.net
sylvaintv at users.sourceforge.net
Thu Oct 28 23:39:46 CEST 2010
Revision: 53908
http://scummvm.svn.sourceforge.net/scummvm/?rev=53908&view=rev
Author: sylvaintv
Date: 2010-10-28 21:39:46 +0000 (Thu, 28 Oct 2010)
Log Message:
-----------
TOON: Fixed some animation glitches for small sprites
Fixed problems when the uncompressed is smaller than compressed size
Bug fix sent by Thomas
It also fixes Bug fix #3086004 : "TOON: Lights above WACME doors incorrect"
Modified Paths:
--------------
scummvm/trunk/engines/toon/anim.cpp
Modified: scummvm/trunk/engines/toon/anim.cpp
===================================================================
--- scummvm/trunk/engines/toon/anim.cpp 2010-10-28 18:45:11 UTC (rev 53907)
+++ scummvm/trunk/engines/toon/anim.cpp 2010-10-28 21:39:46 UTC (rev 53908)
@@ -95,7 +95,11 @@
} else {
_frames[e]._ref = -1;
_frames[e]._data = new uint8[decompressedSize];
- decompressLZSS(imageData, _frames[e]._data, decompressedSize);
+ if (compressedSize < decompressedSize) {
+ decompressLZSS(imageData, _frames[e]._data, decompressedSize);
+ } else {
+ memcpy(_frames[e]._data, imageData, compressedSize);
+ }
}
data += headerSize + compressedSize;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list