aboutsummaryrefslogtreecommitdiff
path: root/engines/director/cast.cpp
diff options
context:
space:
mode:
authorstevenhoefel2017-01-13 15:32:00 +1100
committerstevenhoefel2017-01-13 15:32:00 +1100
commitef295bfd1d133d71b2e368669490421885f0499b (patch)
tree1a13c189386b8c7b1c297d8186c2e58b71582986 /engines/director/cast.cpp
parentc199d2e55d4a003f7941763cd9f8f999c07c557e (diff)
downloadscummvm-rg350-ef295bfd1d133d71b2e368669490421885f0499b.tar.gz
scummvm-rg350-ef295bfd1d133d71b2e368669490421885f0499b.tar.bz2
scummvm-rg350-ef295bfd1d133d71b2e368669490421885f0499b.zip
DIRECTOR: D4 image loading based on BPP.
Diffstat (limited to 'engines/director/cast.cpp')
-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 a3c58008ed..f49d0b5f37 100644
--- a/engines/director/cast.cpp
+++ b/engines/director/cast.cpp
@@ -49,6 +49,9 @@ BitmapCast::BitmapCast(Common::ReadStreamEndian &stream, uint16 version) {
regX = stream.readUint16();
regY = stream.readUint16();
+ bitsPerPixel = stream.readUint16();
+ if (bitsPerPixel == 0) bitsPerPixel = 1;
+
int tail = 0;
while (!stream.eos()) {