diff options
author | athrxx | 2018-10-28 00:15:36 +0200 |
---|---|---|
committer | athrxx | 2018-10-28 15:48:48 +0100 |
commit | bd58c0702bca96c1630d18e358ecc52920d189e1 (patch) | |
tree | 94f1e88a370c9b4478113b4e562641354727c831 | |
parent | 05f6cf388b23e6d14a7f510767018f1dc61bf795 (diff) | |
download | scummvm-rg350-bd58c0702bca96c1630d18e358ecc52920d189e1.tar.gz scummvm-rg350-bd58c0702bca96c1630d18e358ecc52920d189e1.tar.bz2 scummvm-rg350-bd58c0702bca96c1630d18e358ecc52920d189e1.zip |
KYRA: (LOL) - fix for ticket #9831 (Lands of Lore: Japanese text is displayed overlapping)
It seems that I broke this after 1.5.0 in 2013 when adding support for the FM-Towns version.
-rw-r--r-- | engines/kyra/screen.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/text_rpg.cpp | 14 |
2 files changed, 4 insertions, 12 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index 6076879876..584b0e2c4d 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -141,7 +141,7 @@ bool Screen::init() { if (!font) error("Could not load any SJIS font, neither the original nor ScummVM's 'SJIS.FNT'"); - _fonts[FID_SJIS_FNT] = new SJISFont(font, _sjisInvisibleColor, _use16ColorMode, !_use16ColorMode && _vm->game() != GI_LOL, _vm->game() == GI_LOL ? 1 : 0); + _fonts[FID_SJIS_FNT] = new SJISFont(font, _sjisInvisibleColor, _use16ColorMode, !_use16ColorMode && _vm->game() != GI_LOL, !_use16ColorMode && _vm->game() == GI_LOL ? 1 : 0); } } diff --git a/engines/kyra/text_rpg.cpp b/engines/kyra/text_rpg.cpp index 5cd99738ef..6dea66c14d 100644 --- a/engines/kyra/text_rpg.cpp +++ b/engines/kyra/text_rpg.cpp @@ -148,20 +148,12 @@ void TextDisplayer_rpg::displayText(char *str, ...) { if (_vm->gameFlags().lang == Common::JA_JPN) { uint8 cu = (uint8) c; if (cu >= 0xE0 || (cu > 0x80 && cu < 0xA0)) { - if (sjisTextMode) { - _currentLine[_numCharsLeft++] = c; - _currentLine[_numCharsLeft++] = parseCommand(); - _currentLine[_numCharsLeft] = '\0'; - } - if ((_textDimData[sdx].column + _lineWidth + sjisOffs) > (sd->w << 3)) printLine(_currentLine); - if (!sjisTextMode) { - _currentLine[_numCharsLeft++] = c; - _currentLine[_numCharsLeft++] = parseCommand(); - _currentLine[_numCharsLeft] = '\0'; - } + _currentLine[_numCharsLeft++] = c; + _currentLine[_numCharsLeft++] = parseCommand(); + _currentLine[_numCharsLeft] = '\0'; _lineWidth += sjisOffs; c = parseCommand(); |