aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2009-03-27 05:57:19 +0000
committerNicola Mettifogo2009-03-27 05:57:19 +0000
commit146597dd2de21ea3874edb4b0b519eddeac014da (patch)
tree3f41df1225b5f80f3f15c472ba4fd98f6dd9f7bf /engines
parentd75959c3540c21344d462c5074a1be55a984c588 (diff)
downloadscummvm-rg350-146597dd2de21ea3874edb4b0b519eddeac014da.tar.gz
scummvm-rg350-146597dd2de21ea3874edb4b0b519eddeac014da.tar.bz2
scummvm-rg350-146597dd2de21ea3874edb4b0b519eddeac014da.zip
Adjusted calculation of scanline width for ILBM files to account for occasional padding bytes. This fixes the loading of some backgrounds in BRA.
svn-id: r39705
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/iff.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/iff.cpp b/engines/parallaction/iff.cpp
index c15e8fcbd2..887157a38f 100644
--- a/engines/parallaction/iff.cpp
+++ b/engines/parallaction/iff.cpp
@@ -203,7 +203,7 @@ byte *ILBMDecoder::getBitmap(uint32 numPlanes, bool packPlanes) {
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) {