aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFlorian Kagerer2009-06-20 15:09:55 +0000
committerFlorian Kagerer2009-06-20 15:09:55 +0000
commitcb06b0983ee262f18110996049f3038bf3d205b8 (patch)
tree0af390930ce025f4dfb7a0661290a1d8ccf605c6 /engines
parent8d26c58372c9878a26e220c69c76e5500f1f942f (diff)
downloadscummvm-rg350-cb06b0983ee262f18110996049f3038bf3d205b8.tar.gz
scummvm-rg350-cb06b0983ee262f18110996049f3038bf3d205b8.tar.bz2
scummvm-rg350-cb06b0983ee262f18110996049f3038bf3d205b8.zip
LOL: cleanup
svn-id: r41714
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/gui_lol.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/engines/kyra/gui_lol.cpp b/engines/kyra/gui_lol.cpp
index 962097995b..2d65132fc9 100644
--- a/engines/kyra/gui_lol.cpp
+++ b/engines/kyra/gui_lol.cpp
@@ -2333,27 +2333,22 @@ int GUI_LoL::runMenu(Menu &menu) {
_screen->fprintString(_saveDescription, (d->sx << 3), d->sy + 2, d->unk8, d->unkA, 0);
_screen->fillRect((d->sx << 3) + fC, d->sy, (d->sx << 3) + fC + wW, d->sy + d->h - 1, d->unk8, 0);
_screen->setCurPage(pg);
- _screen->updateScreen();
}
while (!_newMenu && _displayMenu) {
processHighlights(*_currentMenu);
if (_currentMenu == &_savenameMenu) {
- fC = _screen->getTextWidth(_saveDescription);
- int pg = _screen->setCurPage(0);
-
if (textCursorTimer <= _vm->_system->getMillis()) {
+ 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 - 1, textCursorStatus ? d->unk8 : d->unkA, 0);
- }
-
- _screen->updateScreen();
- _screen->setCurPage(pg);
+ _screen->updateScreen();
+ }
}
- if (getInput()) {
+ if (getInput()) {
if (!_newMenu)
_newMenu = _currentMenu;
else