[Scummvm-git-logs] scummvm master -> 689e8e8b1b1e4947eef30a1d512dfe586c012a86
athrxx
noreply at scummvm.org
Tue Aug 25 15:02:20 UTC 2026
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:
689e8e8b1b KYRA: (EOBII/PC98) - fix last commit
Commit: 689e8e8b1b1e4947eef30a1d512dfe586c012a86
https://github.com/scummvm/scummvm/commit/689e8e8b1b1e4947eef30a1d512dfe586c012a86
Author: athrxx (athrxx at scummvm.org)
Date: 2026-08-25T17:01:30+02:00
Commit Message:
KYRA: (EOBII/PC98) - fix last commit
Changed paths:
engines/kyra/text/text_rpg.cpp
diff --git a/engines/kyra/text/text_rpg.cpp b/engines/kyra/text/text_rpg.cpp
index 080af6b48f5..4544de014fd 100644
--- a/engines/kyra/text/text_rpg.cpp
+++ b/engines/kyra/text/text_rpg.cpp
@@ -163,7 +163,14 @@ void TextDisplayer_rpg::displayText(char *str, ...) {
int sdx = _screen->curDimIndex();
bool sjisTextMode = (_pc98TextMode && (sdx == 3 || sdx == 4 || sdx == 5 || sdx == 15)) ? true : false;
- Screen::FontId of = (_vm->game() == GI_EOB2 && (_vm->gameFlags().platform == Common::kPlatformFMTowns || _vm->gameFlags().platform == Common::kPlatformPC98)) ? _screen->setFont(Screen::FID_8_FNT) : _screen->_currentFont;
+ Screen::FontId of = _screen->_currentFont;
+
+ if (_vm->game() == GI_EOB2) {
+ if (_vm->gameFlags().platform == Common::kPlatformFMTowns)
+ of = _screen->setFont(Screen::FID_8_FNT);
+ else if (_vm->gameFlags().platform == Common::kPlatformPC98)
+ of = _screen->setFont(Screen::FID_SJIS_FNT);
+ }
uint16 charsPerLine = (sd->w << 3) / (_screen->getFontWidth() + _screen->_charSpacing);
More information about the Scummvm-git-logs
mailing list