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

sev- noreply at scummvm.org
Wed May 20 21:26:00 UTC 2026


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

Summary:
d335f3b022 DIRECTOR: Fix regression for 1-bit bitmaps


Commit: d335f3b022e3dcd3067a977b6d417482f47aa8d4
    https://github.com/scummvm/scummvm/commit/d335f3b022e3dcd3067a977b6d417482f47aa8d4
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-05-20T23:25:09+02:00

Commit Message:
DIRECTOR: Fix regression for 1-bit bitmaps

Introduced in 81eef69c9448ffd9300e99c7b7c8309398f45662. Still required.

The easiest way to see is graphics in The Apartment

Changed paths:
    engines/director/castmember/bitmap.cpp


diff --git a/engines/director/castmember/bitmap.cpp b/engines/director/castmember/bitmap.cpp
index e1991e72cf8..382d7bfc5cb 100644
--- a/engines/director/castmember/bitmap.cpp
+++ b/engines/director/castmember/bitmap.cpp
@@ -102,6 +102,11 @@ BitmapCastMember::BitmapCastMember(Cast *cast, uint16 castId, Common::SeekableRe
 
 		_pitch = _initialRect.width();
 
+		if (_bitsPerPixel == 1) {
+			if (_pitch % 16)
+				_pitch += 16 - (_initialRect.width() % 16);
+		}
+
 		_pitch *= _bitsPerPixel;
 		_pitch >>= 3;
 		if (_pitch % 2)




More information about the Scummvm-git-logs mailing list