aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-02-06 22:03:10 +1100
committerPaul Gilbert2012-02-06 22:03:10 +1100
commit2855735e1f8e3daee2f360eb12b79557a9d3326e (patch)
tree9a44e64b3e14f4cc2c3325e68886432bc19c0b8f /engines
parente81d1848d1821a20962a72a1837e71ef37beb701 (diff)
downloadscummvm-rg350-2855735e1f8e3daee2f360eb12b79557a9d3326e.tar.gz
scummvm-rg350-2855735e1f8e3daee2f360eb12b79557a9d3326e.tar.bz2
scummvm-rg350-2855735e1f8e3daee2f360eb12b79557a9d3326e.zip
TSAGE: Properly de-select inventory buttons when mouse has moved off before mouse is released.
This fixes bug #3484777.
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/user_interface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/tsage/user_interface.cpp b/engines/tsage/user_interface.cpp
index 2d06e268e4..428bf8c038 100644
--- a/engines/tsage/user_interface.cpp
+++ b/engines/tsage/user_interface.cpp
@@ -199,9 +199,9 @@ void UIInventoryScroll::process(Event &event) {
// Draw the button as selected
toggle(true);
- event.handled = true;
- break;
- case EVENT_BUTTON_UP:
+ // Wait for the mouse to be released
+ BF_GLOBALS._events.waitForPress(EVENT_BUTTON_UP);
+
// Restore unselected version
toggle(false);