diff options
author | Scott Percival | 2020-01-05 14:42:50 +0800 |
---|---|---|
committer | Scott Percival | 2020-01-05 14:42:50 +0800 |
commit | c6dcb30f4fe11158566c7f51b4d631e5706dae03 (patch) | |
tree | 0df04162e8aa82b44ec27002c4927c3f4b9eb01e /engines | |
parent | 551d6a6bb09fd1f56da87add25c6eaf902412a8f (diff) | |
download | scummvm-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.cpp | 3 |
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()) { |