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.
This commit is contained in:
Torbjörn Andersson 2015-03-21 17:35:47 +01:00
parent 4550e8c5ef
commit 16ba21259b

View File

@ -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) {