[Scummvm-git-logs] scummvm master -> c79f3e87810868fb311a70352b66629b469369f4
athrxx
noreply at scummvm.org
Fri Jul 29 17:36:12 UTC 2022
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:
c79f3e8781 SCUMM: (DOTT/EGA) -fix verb screen glitch
Commit: c79f3e87810868fb311a70352b66629b469369f4
https://github.com/scummvm/scummvm/commit/c79f3e87810868fb311a70352b66629b469369f4
Author: athrxx (athrxx at scummvm.org)
Date: 2022-07-29T19:35:33+02:00
Commit Message:
SCUMM: (DOTT/EGA) -fix verb screen glitch
(wrong color range in darkenPalette, but actually only for games that don't really support the EGA mode)
Changed paths:
engines/scumm/palette.cpp
diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp
index efdee1d1d56..99d8dc6a8bd 100644
--- a/engines/scumm/palette.cpp
+++ b/engines/scumm/palette.cpp
@@ -1065,8 +1065,8 @@ void ScummEngine::darkenPalette(int redScale, int greenScale, int blueScale, int
if (!_EPAL_offs) {
// We can support the EGA mode for games that aren't supposed to have it, like this.
// Might be glitchy, though...
- const byte *p = getPalettePtr(_curPalIndex, _roomResource);
- for (int i = 0; i < 256; ++i) {
+ const byte *p = getPalettePtr(_curPalIndex, _roomResource) + startColor * 3;
+ for (int i = startColor; i <= endColor; ++i) {
byte col = egaFindBestMatch(p[0], p[1], p[2]);
_egaColorMap[0][i] = col & 0x0F;
_egaColorMap[1][i] = col >> 4;
More information about the Scummvm-git-logs
mailing list