From c6dcb30f4fe11158566c7f51b4d631e5706dae03 Mon Sep 17 00:00:00 2001 From: Scott Percival Date: Sun, 5 Jan 2020 14:42:50 +0800 Subject: DIRECTOR: Fix bitmap pitch for 1bpp images in v4 --- engines/director/cast.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/director') 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()) { -- cgit v1.2.3