diff options
author | stevenhoefel | 2017-01-13 15:32:00 +1100 |
---|---|---|
committer | stevenhoefel | 2017-01-13 15:32:00 +1100 |
commit | ef295bfd1d133d71b2e368669490421885f0499b (patch) | |
tree | 1a13c189386b8c7b1c297d8186c2e58b71582986 /engines/director/cast.cpp | |
parent | c199d2e55d4a003f7941763cd9f8f999c07c557e (diff) | |
download | scummvm-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.cpp | 3 |
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()) { |