[Scummvm-git-logs] scummvm master -> d169bde11ec39246ae09d3bd7a10107e1eb1fdfa
eriktorbjorn
noreply at scummvm.org
Fri Jul 11 05:56:21 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:
d169bde11e SCUMM: Really try to fix #15869 for MI1 (VGA floppy)
Commit: d169bde11ec39246ae09d3bd7a10107e1eb1fdfa
https://github.com/scummvm/scummvm/commit/d169bde11ec39246ae09d3bd7a10107e1eb1fdfa
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2025-07-11T07:55:29+02:00
Commit Message:
SCUMM: Really try to fix #15869 for MI1 (VGA floppy)
This game is v4, and expects the shadow palette to be set. I hope this
is good enough.
Changed paths:
engines/scumm/palette.cpp
diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp
index f94c44410dc..4d32ccf0b76 100644
--- a/engines/scumm/palette.cpp
+++ b/engines/scumm/palette.cpp
@@ -270,7 +270,7 @@ void ScummEngine::resetPalette(bool isBootUp) {
_townsScreen->toggleLayers(_townsActiveLayerFlags);
#endif // DISABLE_TOWNS_DUAL_LAYER_MODE
- } else if (isBootUp && (_game.version >= 5 && _game.heversion == 0) &&
+ } else if (isBootUp && (_game.version >= 4 && _game.heversion == 0) &&
(_game.platform == Common::kPlatformDOS || _game.platform == Common::kPlatformUnknown) &&
_renderMode == Common::kRenderDefault) {
// VGA games at boot-up have at their disposal whatever mode 13h
@@ -278,6 +278,11 @@ void ScummEngine::resetPalette(bool isBootUp) {
// We just need the first few colors, which are the same as the EGA colors.
// (See #15869: "SCUMM: MI1: Message banner can be invisible if palette is all black")
setPaletteFromTable(tableEGAPalette, sizeof(tableEGAPalette) / 3);
+
+ if (_game.id == GID_MONKEY_VGA) {
+ for (int i = 0; i < _shadowPaletteSize; i++)
+ _shadowPalette[i] = i;
+ }
}
setDirtyColors(0, 255);
More information about the Scummvm-git-logs
mailing list