[Scummvm-cvs-logs] SF.net SVN: scummvm:[39705] scummvm/trunk/engines/parallaction/iff.cpp
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Fri Mar 27 06:57:19 CET 2009
Revision: 39705
http://scummvm.svn.sourceforge.net/scummvm/?rev=39705&view=rev
Author: peres001
Date: 2009-03-27 05:57:19 +0000 (Fri, 27 Mar 2009)
Log Message:
-----------
Adjusted calculation of scanline width for ILBM files to account for occasional padding bytes. This fixes the loading of some backgrounds in BRA.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/iff.cpp
Modified: scummvm/trunk/engines/parallaction/iff.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/iff.cpp 2009-03-26 21:52:04 UTC (rev 39704)
+++ scummvm/trunk/engines/parallaction/iff.cpp 2009-03-27 05:57:19 UTC (rev 39705)
@@ -203,7 +203,7 @@
byte *out = bitmap;
// setup a buffer to hold enough data to build a line in the output
- uint32 scanWidth = (_header.width + 7) >> 3;
+ uint32 scanWidth = ((_header.width + 15)/16) << 1;
byte *scanBuffer = (byte*)malloc(scanWidth * _header.depth);
for (uint i = 0; i < _header.height; ++i) {
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