[Scummvm-git-logs] scummvm master -> 33abd90cffc1bafcc90612c02d78811238a73f25
sev-
noreply at scummvm.org
Thu Oct 16 13:53:47 UTC 2025
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:
33abd90cff DIRECTOR: Fix regression with Matte in 32bpp mode
Commit: 33abd90cffc1bafcc90612c02d78811238a73f25
https://github.com/scummvm/scummvm/commit/33abd90cffc1bafcc90612c02d78811238a73f25
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-10-16T15:53:32+02:00
Commit Message:
DIRECTOR: Fix regression with Matte in 32bpp mode
Changed paths:
engines/director/castmember/bitmap.cpp
diff --git a/engines/director/castmember/bitmap.cpp b/engines/director/castmember/bitmap.cpp
index c29cb5c2ae7..9718b4f7e82 100644
--- a/engines/director/castmember/bitmap.cpp
+++ b/engines/director/castmember/bitmap.cpp
@@ -559,7 +559,7 @@ void BitmapCastMember::createMatte(const Common::Rect &bbox) {
palette = _picture->_palette;
}
- if (_picture->_surface.format.isCLUT8()) {
+ if (tmp.format.isCLUT8()) {
for (int y = 0; y < tmp.h; y++) {
for (int x = 0; x < tmp.w; x++) {
byte color = *(byte *)tmp.getBasePtr(x, y);
@@ -578,7 +578,7 @@ void BitmapCastMember::createMatte(const Common::Rect &bbox) {
}
}
} else {
- whiteColor = _picture->_surface.format.RGBToColor(0xff, 0xff, 0xff);
+ whiteColor = tmp.format.RGBToColor(0xff, 0xff, 0xff);
colorFound = true;
}
More information about the Scummvm-git-logs
mailing list