diff options
author | Johannes Schickel | 2009-10-11 12:05:55 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-10-11 12:05:55 +0000 |
commit | 47988039ea009940f20e56b79749d6800cfc806c (patch) | |
tree | aa84140989e9961d82ecb59c9d748ac0472367a2 /engines | |
parent | e90f337bd20bcf04920c1eeae634892750aed363 (diff) | |
download | scummvm-rg350-47988039ea009940f20e56b79749d6800cfc806c.tar.gz scummvm-rg350-47988039ea009940f20e56b79749d6800cfc806c.tar.bz2 scummvm-rg350-47988039ea009940f20e56b79749d6800cfc806c.zip |
Fix text input font for LoL PC98.
svn-id: r44912
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/gui_lol.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/engines/kyra/gui_lol.cpp b/engines/kyra/gui_lol.cpp index 04c597a534..f26c0d6576 100644 --- a/engines/kyra/gui_lol.cpp +++ b/engines/kyra/gui_lol.cpp @@ -2457,7 +2457,6 @@ int GUI_LoL::runMenu(Menu &menu) { textCursorTimer = 0; textCursorStatus = 0; - Screen::FontId f = _screen->setFont(Screen::FID_9_FNT); fC = _screen->getTextWidth(_saveDescription); while (fC >= fW) { _saveDescription[strlen(_saveDescription) - 1] = 0; @@ -2465,7 +2464,6 @@ int GUI_LoL::runMenu(Menu &menu) { } _screen->fprintString("%s", (d->sx << 3), d->sy + 2, d->unk8, d->unkA, 0, _saveDescription); - f = _screen->setFont(f); _screen->fillRect((d->sx << 3) + fC, d->sy, (d->sx << 3) + fC + wW, d->sy + d->h - (_vm->gameFlags().use16ColorMode ? 2 : 1), d->unk8, 0); _screen->setCurPage(pg); } @@ -2475,20 +2473,17 @@ int GUI_LoL::runMenu(Menu &menu) { if (_currentMenu == &_savenameMenu) { if (textCursorTimer <= _vm->_system->getMillis()) { - Screen::FontId f = _screen->setFont(Screen::FID_9_FNT); fC = _screen->getTextWidth(_saveDescription); textCursorStatus ^= 1; textCursorTimer = _vm->_system->getMillis() + 20 * _vm->_tickLength; _screen->fillRect((d->sx << 3) + fC, d->sy, (d->sx << 3) + fC + wW, d->sy + d->h - (_vm->gameFlags().use16ColorMode ? 2 : 1), textCursorStatus ? d->unk8 : d->unkA, 0); _screen->updateScreen(); - f = _screen->setFont(f); } } if (getInput()) { if (!_newMenu) { if (_currentMenu == &_savenameMenu) { - Screen::FontId f = _screen->setFont(Screen::FID_9_FNT); _screen->fillRect((d->sx << 3) + fC, d->sy, (d->sx << 3) + fC + wW, d->sy + d->h - (_vm->gameFlags().use16ColorMode ? 2 : 1), d->unkA, 0); fC = _screen->getTextWidth(_saveDescription); while (fC >= fW) { @@ -2497,7 +2492,6 @@ int GUI_LoL::runMenu(Menu &menu) { } _screen->fprintString("%s", (d->sx << 3), d->sy + 2, d->unk8, d->unkA, 0, _saveDescription); _screen->fillRect((d->sx << 3) + fC, d->sy, (d->sx << 3) + fC + wW, d->sy + d->h - (_vm->gameFlags().use16ColorMode ? 2 : 1), textCursorStatus ? d->unk8 : d->unkA, 0); - f = _screen->setFont(f); textCursorTimer = 0; textCursorStatus = 0; } else { |