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:
parent
84487958d2
commit
64a4d498ce
3 changed files with 3 additions and 3 deletions
|
@ -260,7 +260,7 @@ void ResVmSdlGraphicsManager::notifyVideoExpose() {
|
||||||
//updateScreen();
|
//updateScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ResVmSdlGraphicsManager::notifyMousePosition(Common::Point mouse) {
|
bool ResVmSdlGraphicsManager::notifyMousePosition(Common::Point &mouse) {
|
||||||
transformMouseCoordinates(mouse);
|
transformMouseCoordinates(mouse);
|
||||||
// ResidualVM: not use that:
|
// ResidualVM: not use that:
|
||||||
//setMousePos(mouse.x, mouse.y);
|
//setMousePos(mouse.x, mouse.y);
|
||||||
|
|
|
@ -66,7 +66,7 @@ public:
|
||||||
void activateManager() override;
|
void activateManager() override;
|
||||||
void deactivateManager() override;
|
void deactivateManager() override;
|
||||||
void notifyVideoExpose() override;
|
void notifyVideoExpose() override;
|
||||||
bool notifyMousePosition(Common::Point mouse) override;
|
bool notifyMousePosition(Common::Point &mouse) override;
|
||||||
|
|
||||||
// GraphicsManager API - Features
|
// GraphicsManager API - Features
|
||||||
void setFeatureState(OSystem::Feature f, bool enable) override;
|
void setFeatureState(OSystem::Feature f, bool enable) override;
|
||||||
|
|
|
@ -97,7 +97,7 @@ public:
|
||||||
* @returns true if the mouse was in a valid position for the game and
|
* @returns true if the mouse was in a valid position for the game and
|
||||||
* should cause the event to be sent to the game.
|
* should cause the event to be sent to the game.
|
||||||
*/
|
*/
|
||||||
virtual bool notifyMousePosition(Common::Point mouse) = 0;
|
virtual bool notifyMousePosition(Common::Point &mouse) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A (subset) of the graphic manager's state. This is used when switching
|
* A (subset) of the graphic manager's state. This is used when switching
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue