aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2009-01-02 03:03:06 +0000
committerJohannes Schickel2009-01-02 03:03:06 +0000
commit4ec7876972d268fa835852453a0e3c800cf16698 (patch)
treef6c9443c85b0287b236f3327a3b56025cf43a52e
parent1b41a49fc55c1b6348f4bdcc59441a5c05a723ae (diff)
downloadscummvm-rg350-4ec7876972d268fa835852453a0e3c800cf16698.tar.gz
scummvm-rg350-4ec7876972d268fa835852453a0e3c800cf16698.tar.bz2
scummvm-rg350-4ec7876972d268fa835852453a0e3c800cf16698.zip
Reverted the handling of mouse move events, now the slider widget should be highlighted correctly again.
svn-id: r35667
-rw-r--r--gui/dialog.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index 0cead248c9..7aea3cb722 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -294,10 +294,7 @@ void Dialog::handleMouseMoved(int x, int y, int button) {
_mouseWidget = w;
}
- // We only sent mouse move events under the following conditions:
- // 1) We have a widget in drag mode
- // 2) The widget wants to track the mouse movement
- w = _dragWidget;
+ // We only sent mouse move events when the widget requests to be informed about them.
if (w && (w->getFlags() & WIDGET_TRACK_MOUSE))
w->handleMouseMoved(x - (w->getAbsX() - _x), y - (w->getAbsY() - _y), button);
}