diff options
author | Filippos Karapetis | 2007-06-16 19:11:55 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-06-16 19:11:55 +0000 |
commit | e080f493973ebed929df463aa19e85a01a4e648e (patch) | |
tree | 0e56ab24baf9212b3d14e7b212b1e87d86696b92 | |
parent | 2e471cfa7ac14b19f9308246860e9abce1a6ef34 (diff) | |
download | scummvm-rg350-e080f493973ebed929df463aa19e85a01a4e648e.tar.gz scummvm-rg350-e080f493973ebed929df463aa19e85a01a4e648e.tar.bz2 scummvm-rg350-e080f493973ebed929df463aa19e85a01a4e648e.zip |
Options button is now working in the character selection screen in IHNM
svn-id: r27480
-rw-r--r-- | engines/saga/interface.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index 52ed2e6567..4018c070fa 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -1627,12 +1627,21 @@ void Interface::update(const Point& mousePoint, int updateFlag) { break; case kPanelChapterSelection: - // TODO: panel has silent button if (updateFlag & UPDATE_MOUSEMOVE) { handleChapterSelectionUpdate(mousePoint); } else { - if (updateFlag & UPDATE_MOUSECLICK) - handleChapterSelectionClick(mousePoint); + if (updateFlag & UPDATE_MOUSECLICK) { + Rect rect; + rect.left = _vm->getDisplayInfo().saveReminderXOffset; + rect.top = _vm->getDisplayInfo().saveReminderYOffset; + + rect.right = rect.left + _vm->getDisplayInfo().saveReminderWidth; + rect.bottom = rect.top + _vm->getDisplayInfo().saveReminderHeight; + if (rect.contains(mousePoint)) + setMode(kPanelOption); + else + handleChapterSelectionClick(mousePoint); + } } break; |