diff options
author | Florian Kagerer | 2009-10-04 01:05:27 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-10-04 01:05:27 +0000 |
commit | b8e02a03c1d0f1a8224a091b910c8210e6486c53 (patch) | |
tree | fcbf712a78f40d6935315a3b84c4409c2f9927d1 /engines/kyra/text_lol.cpp | |
parent | 0ed87062ed776e8d182eac16157b2c7b48796843 (diff) | |
download | scummvm-rg350-b8e02a03c1d0f1a8224a091b910c8210e6486c53.tar.gz scummvm-rg350-b8e02a03c1d0f1a8224a091b910c8210e6486c53.tar.bz2 scummvm-rg350-b8e02a03c1d0f1a8224a091b910c8210e6486c53.zip |
LOL: fixed minor bugs in text displayer
svn-id: r44582
Diffstat (limited to 'engines/kyra/text_lol.cpp')
-rw-r--r-- | engines/kyra/text_lol.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/kyra/text_lol.cpp b/engines/kyra/text_lol.cpp index 0dd6a1b2f2..918bad5e25 100644 --- a/engines/kyra/text_lol.cpp +++ b/engines/kyra/text_lol.cpp @@ -459,7 +459,7 @@ void TextDisplayer_LoL::displayText(char *str, ...) { break; default: - _lineWidth += (pc98PrintFlag ? 4 : _screen->getCharWidth(c)); + _lineWidth += (pc98PrintFlag ? 4 : _screen->getCharWidth((uint8)c)); _currentLine[_numCharsLeft++] = c; _currentLine[_numCharsLeft] = 0; @@ -586,7 +586,7 @@ void TextDisplayer_LoL::printLine(char *str) { //cut off line after last space c = str[n1]; - lw -= _screen->getCharWidth(c); + lw -= _screen->getCharWidth((uint8)c); if (!n2 && lw <= w) n2 = n1; @@ -729,7 +729,7 @@ void TextDisplayer_LoL::textPageBreak() { if (_vm->speechEnabled()) { if (((_vm->_system->getMillis() > speechPartTime) || (_vm->snd_updateCharacterSpeech() != 2)) && speechPartTime) { loop = false; - inputFlag = 43; + inputFlag = _vm->_keyMap[Common::KEYCODE_RETURN]; break; } } @@ -745,15 +745,14 @@ void TextDisplayer_LoL::textPageBreak() { } else if (inputFlag == 199 || inputFlag == 201) { if (_vm->posWithinRect(_vm->_mouseX, _vm->_mouseY, x, y, x + 74, y + 9)) target = true; - - } else if (inputFlag == 199 || inputFlag == 201) { + } else if (inputFlag == 200 || inputFlag == 202) { if (target) loop = false; } } while (loop); - _screen->fillRect(x, y, x + 74, y + 9, _textDimData[_screen->curDimIndex()].color2); + _screen->fillRect(x, y, x + 73, y + 8, _textDimData[_screen->curDimIndex()].color2); clearCurDim(); _vm->_timer->pauseSingleTimer(11, false); |