diff options
author | Gregory Montoir | 2006-11-06 23:32:37 +0000 |
---|---|---|
committer | Gregory Montoir | 2006-11-06 23:32:37 +0000 |
commit | c9cb98291db28b7f2a041e2ed5e90ba5f40764a9 (patch) | |
tree | be4e5e07a910a6686af64cbaab867b6ce4c134be /engines/touche/ui.cpp | |
parent | 6c8af67b605f3bac9680b77da8999d5cc5ca5987 (diff) | |
download | scummvm-rg350-c9cb98291db28b7f2a041e2ed5e90ba5f40764a9.tar.gz scummvm-rg350-c9cb98291db28b7f2a041e2ed5e90ba5f40764a9.tar.bz2 scummvm-rg350-c9cb98291db28b7f2a041e2ed5e90ba5f40764a9.zip |
some fixes, some cleanup
svn-id: r24644
Diffstat (limited to 'engines/touche/ui.cpp')
-rw-r--r-- | engines/touche/ui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/touche/ui.cpp b/engines/touche/ui.cpp index 912ba202fc..4e50ac627d 100644 --- a/engines/touche/ui.cpp +++ b/engines/touche/ui.cpp @@ -167,7 +167,7 @@ void ToucheEngine::ui_drawSaveGamesList(int page) { } void ToucheEngine::ui_drawCurrentGameStateDescription() { - const Common::Rect *r = &buttonsRectTable1[_saveLoadCurrentSlot]; + const Common::Rect *r = &buttonsRectTable1[_saveLoadCurrentSlot % 10]; Graphics::fillRect(_offscreenBuffer, 640, r->left, r->top, r->width(), r->height(), 0xF8); int y = r->top; @@ -292,7 +292,6 @@ int ToucheEngine::ui_handleSaveLoad(SaveLoadMode mode) { button = -1; } if (mode == kSaveGameState) { - _saveLoadCurrentPage = (_saveLoadCurrentSlot / 10) * 10; if (_saveLoadCurrentDescriptionLen != descriptionLen) { descriptionLen = _saveLoadCurrentDescriptionLen; ui_drawCurrentGameStateDescription(); |