mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
KEYMAPPER: Fix virtual mouse bound in small rectangle in vkeybd
This commit is contained in:
parent
31be074893
commit
3a5690ebb4
@ -65,7 +65,7 @@ bool VirtualMouse::pollEvent(Event &event) {
|
||||
|
||||
// Adjust the speed of the cursor according to the virtual screen resolution
|
||||
Common::Rect screenSize;
|
||||
if (g_gui.isActive()) {
|
||||
if (g_system->isOverlayVisible()) {
|
||||
screenSize = Common::Rect(g_system->getOverlayWidth(), g_system->getOverlayHeight());
|
||||
} else {
|
||||
screenSize = Common::Rect(g_system->getWidth(), g_system->getHeight());
|
||||
|
Loading…
Reference in New Issue
Block a user