Fix mouse going out of bounds in fullscreen

The coordinates were translated, but this was done on a copy
instead of overwriting the original object.
This commit is contained in:
Orgad Shaneh 2019-04-01 21:11:43 +03:00
parent 84487958d2
commit 64a4d498ce
3 changed files with 3 additions and 3 deletions

View file

@ -260,7 +260,7 @@ void ResVmSdlGraphicsManager::notifyVideoExpose() {
//updateScreen();
}
bool ResVmSdlGraphicsManager::notifyMousePosition(Common::Point mouse) {
bool ResVmSdlGraphicsManager::notifyMousePosition(Common::Point &mouse) {
transformMouseCoordinates(mouse);
// ResidualVM: not use that:
//setMousePos(mouse.x, mouse.y);