mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-02 15:16:46 +00:00
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:
parent
4550e8c5ef
commit
16ba21259b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user