diff options
author | Martin Kiewitz | 2016-02-02 17:47:17 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-02-02 17:47:17 +0100 |
commit | 223ce70eab9e88a6271e46b70407e0d0398273db (patch) | |
tree | 97125e4c493821956af662596e2187a9eb4c17a3 | |
parent | 0b75bf37219cf49f274da330a44e81068152599c (diff) | |
download | scummvm-rg350-223ce70eab9e88a6271e46b70407e0d0398273db.tar.gz scummvm-rg350-223ce70eab9e88a6271e46b70407e0d0398273db.tar.bz2 scummvm-rg350-223ce70eab9e88a6271e46b70407e0d0398273db.zip |
AGI: Don't use status row for menu mouse trigger
Use hardcoded first line instead
In Donald Duck the status line is at line 24, but also hidden
-rw-r--r-- | engines/agi/keyboard.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index 627e5021d1..051ae48470 100644 --- a/engines/agi/keyboard.cpp +++ b/engines/agi/keyboard.cpp @@ -288,11 +288,9 @@ bool AgiEngine::handleMouseClicks(uint16 &key) { if (!cycleInnerLoopIsActive()) { // Only do this, when no inner loop is currently active Common::Rect displayLineRect(DISPLAY_WIDTH, FONT_DISPLAY_HEIGHT); - int16 statusRow = _text->statusRow_Get(); - - displayLineRect.moveTo(0, statusRow * FONT_DISPLAY_HEIGHT); if (displayLineRect.contains(_mouse.pos)) { + // Mouse is inside first line of the screen if (getFlag(VM_FLAG_MENUS_ACCESSIBLE) && _menu->isAvailable()) { _menu->delayedExecuteViaMouse(); key = 0; // eat event |