[Scummvm-git-logs] scummvm master -> 036798d61416146ceeaee7ede4ab6ba39fefc4cf
bluegr
noreply at scummvm.org
Sun Sep 15 18:48:20 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:
036798d614 ASYLUM: Add more colors for Chinese version
Commit: 036798d61416146ceeaee7ede4ab6ba39fefc4cf
https://github.com/scummvm/scummvm/commit/036798d61416146ceeaee7ede4ab6ba39fefc4cf
Author: Vladimir Serbinenko (phcoder at gmail.com)
Date: 2024-09-15T21:48:17+03:00
Commit Message:
ASYLUM: Add more colors for Chinese version
Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
Changed paths:
engines/asylum/system/text.cpp
diff --git a/engines/asylum/system/text.cpp b/engines/asylum/system/text.cpp
index 3f90332fbb9..b437527e33e 100644
--- a/engines/asylum/system/text.cpp
+++ b/engines/asylum/system/text.cpp
@@ -170,12 +170,27 @@ void Text::drawChinese(const Common::U32String &utext) {
Graphics::Surface *surf = getScreen()->getSurface();
uint8 color = 0;
// TODO: Add more colors
- switch (_fontResource->getResourceId()) {
+ switch ((uint32_t)_fontResource->getResourceId()) {
case 0: // Case to quiet VS C4065 warning
default:
debug(5, "Unrecognized font resource 0x%x for string %s", _fontResource->getResourceId(), utext.encode().c_str());
color = 1;
break;
+ case 0x80010039:
+ color = 0xff;
+ break;
+ case 0x8005000d:
+ color = 0x10;
+ break;
+ case 0x8005000e:
+ color = 0x25;
+ break;
+ case 0x8005000f:
+ color = 0x1f;
+ break;
+ case 0x80120012:
+ color = 0x69;
+ break;
}
_chineseFont->drawString(surf, utext, _position.x, _position.y, surf->w - _position.x, color);
More information about the Scummvm-git-logs
mailing list