[Scummvm-git-logs] scummvm master -> c6dcb30f4fe11158566c7f51b4d631e5706dae03

moralrecordings code at moral.net.au
Sun Jan 5 06:43:31 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c6dcb30f4f DIRECTOR: Fix bitmap pitch for 1bpp images in v4


Commit: c6dcb30f4fe11158566c7f51b4d631e5706dae03
    https://github.com/scummvm/scummvm/commit/c6dcb30f4fe11158566c7f51b4d631e5706dae03
Author: Scott Percival (code at moral.net.au)
Date: 2020-01-05T14:42:50+08:00

Commit Message:
DIRECTOR: Fix bitmap pitch for 1bpp images in v4

Changed paths:
    engines/director/cast.cpp


diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp
index f0c0746..a386744 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()) {




More information about the Scummvm-git-logs mailing list