aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorScott Percival2020-01-05 14:42:50 +0800
committerScott Percival2020-01-05 14:42:50 +0800
commitc6dcb30f4fe11158566c7f51b4d631e5706dae03 (patch)
tree0df04162e8aa82b44ec27002c4927c3f4b9eb01e /engines
parent551d6a6bb09fd1f56da87add25c6eaf902412a8f (diff)
downloadscummvm-rg350-c6dcb30f4fe11158566c7f51b4d631e5706dae03.tar.gz
scummvm-rg350-c6dcb30f4fe11158566c7f51b4d631e5706dae03.tar.bz2
scummvm-rg350-c6dcb30f4fe11158566c7f51b4d631e5706dae03.zip
DIRECTOR: Fix bitmap pitch for 1bpp images in v4
Diffstat (limited to 'engines')
-rw-r--r--engines/director/cast.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp
index f0c074604b..a38674441a 100644
--- a/engines/director/cast.cpp
+++ b/engines/director/cast.cpp
@@ -70,6 +70,9 @@ BitmapCast::BitmapCast(Common::ReadStreamEndian &stream, uint32 castTag, uint16
if (_bitsPerPixel == 0)
_bitsPerPixel = 1;
+ if (_bitsPerPixel == 1)
+ _pitch *= 8;
+
int tail = 0;
while (!stream.eos()) {