[Scummvm-git-logs] scummvm master -> 9c2eaa921514ddd90ed3ec1be87d5caf14bb65c7
athrxx
noreply at scummvm.org
Wed Jul 31 20:39:14 UTC 2024
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:
9c2eaa9215 SCUMM: (INDY3/EGA) - fix text color regression
Commit: 9c2eaa921514ddd90ed3ec1be87d5caf14bb65c7
https://github.com/scummvm/scummvm/commit/9c2eaa921514ddd90ed3ec1be87d5caf14bb65c7
Author: athrxx (athrxx at scummvm.org)
Date: 2024-07-31T22:38:45+02:00
Commit Message:
SCUMM: (INDY3/EGA) - fix text color regression
Changed paths:
engines/scumm/charset.cpp
diff --git a/engines/scumm/charset.cpp b/engines/scumm/charset.cpp
index 6aa3ec9e3fd..ae63e017fb5 100644
--- a/engines/scumm/charset.cpp
+++ b/engines/scumm/charset.cpp
@@ -875,8 +875,8 @@ void CharsetRendererV3::setColor(byte color, bool shadowModeSpecialFlag) {
mode = (_color & 0x40) ? (shadowModeSpecialFlag ? kNoShadowType : kOutlineShadowType) : ((_color & 0x80) ? kNormalShadowType : kNoShadowType);
_color &= 0x0f;
} else if (_vm->_game.version >= 2 && (_vm->_game.features & GF_16COLOR)) {
- if ((_color & 0xF0) != 0)
- mode = kNormalShadowType;
+ mode = (_color & 0x80) ? kNormalShadowType : kNoShadowType;
+ _color &= 0x0f;
}
setShadowMode(mode);
More information about the Scummvm-git-logs
mailing list