aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorTorbjörn Andersson2015-03-21 17:35:47 +0100
committerTorbjörn Andersson2015-03-21 17:45:05 +0100
commit16ba21259b2aaf3b9ee9acae2e0aba95df1dea36 (patch)
tree354d50dd3bfd31ffeb1debc5fb480c69ff623de0 /gui
parent4550e8c5ef0429e1c917d455049419871acfabec (diff)
downloadscummvm-rg350-16ba21259b2aaf3b9ee9acae2e0aba95df1dea36.tar.gz
scummvm-rg350-16ba21259b2aaf3b9ee9acae2e0aba95df1dea36.tar.bz2
scummvm-rg350-16ba21259b2aaf3b9ee9acae2e0aba95df1dea36.zip
GUI: Adjust x and y to handleMouseWheel() for consistency
This means x and y has the same meaning as in the other handlers, e.g. handleMouseUp(). Though as far as I can tell, these coordinates aren't actually used anywhere at the moment.
Diffstat (limited to 'gui')
-rw-r--r--gui/dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index fa4e508494..315c24e9bf 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -219,7 +219,7 @@ void Dialog::handleMouseWheel(int x, int y, int direction) {
if (!w)
w = _focusedWidget;
if (w)
- w->handleMouseWheel(x, y, direction);
+ w->handleMouseWheel(x - (w->getAbsX() - _x), y - (w->getAbsY() - _y), direction);
}
void Dialog::handleKeyDown(Common::KeyState state) {