aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
Diffstat (limited to 'engines/parallaction')
-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) {