diff options
author | Florian Kagerer | 2009-10-04 11:42:26 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-10-04 11:42:26 +0000 |
commit | f8e8e764ceeca1ae61a6058cca7fdf94718c4518 (patch) | |
tree | f2a04ac9de57c4e2e992bd8d41a924090e31511b | |
parent | 14c322ceb76038d85063c07e812e0f8a27b6254d (diff) | |
download | scummvm-rg350-f8e8e764ceeca1ae61a6058cca7fdf94718c4518.tar.gz scummvm-rg350-f8e8e764ceeca1ae61a6058cca7fdf94718c4518.tar.bz2 scummvm-rg350-f8e8e764ceeca1ae61a6058cca7fdf94718c4518.zip |
LOL/PC-98: some more work on sjis font support for the text displayer
svn-id: r44602
-rw-r--r-- | engines/kyra/text_lol.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/engines/kyra/text_lol.cpp b/engines/kyra/text_lol.cpp index 918bad5e25..a6fbe9f699 100644 --- a/engines/kyra/text_lol.cpp +++ b/engines/kyra/text_lol.cpp @@ -710,9 +710,14 @@ void TextDisplayer_LoL::textPageBreak() { y = dim->sy + dim->h - 10; } - _vm->gui_drawBox(x, y, 74, 9, 136, 251, -1); char *txt = _vm->getLangString(0x4073); - _vm->_screen->printText(txt, x + 37 - (_vm->_screen->getTextWidth(txt) >> 1), y + 2, _vm->gameFlags().use16ColorMode ? dim->unk8 : 144, 0); + if (_vm->gameFlags().use16ColorMode) { + _vm->gui_drawBox(x + 8, (y & ~7) - 1, 66, 10, 0xee, 0xcc, -1); + _vm->_screen->printText(txt, (x + 37 - (strlen(txt) << 1) + 4) & ~3, (y + 2) & ~7, 0xc1, 0); + } else { + _vm->gui_drawBox(x, y, 74, 9, 136, 251, -1); + _vm->_screen->printText(txt, x + 37 - (_vm->_screen->getTextWidth(txt) >> 1), y + 2, 144, 0); + } _vm->removeInputTop(); @@ -752,7 +757,11 @@ void TextDisplayer_LoL::textPageBreak() { } while (loop); - _screen->fillRect(x, y, x + 73, y + 8, _textDimData[_screen->curDimIndex()].color2); + if (_vm->gameFlags().use16ColorMode) + _screen->fillRect(x + 8, y, x + 57, y + 9, _textDimData[_screen->curDimIndex()].color2); + else + _screen->fillRect(x, y, x + 73, y + 8, _textDimData[_screen->curDimIndex()].color2); + clearCurDim(); _vm->_timer->pauseSingleTimer(11, false); |