From 3a5690ebb4f2e2ffdc589ebd2359eac60c9eceb3 Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Mon, 14 Sep 2020 15:46:40 -0500 Subject: [PATCH] KEYMAPPER: Fix virtual mouse bound in small rectangle in vkeybd --- backends/keymapper/virtual-mouse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/keymapper/virtual-mouse.cpp b/backends/keymapper/virtual-mouse.cpp index 552fdbd1ee3..b9d81ec6a66 100644 --- a/backends/keymapper/virtual-mouse.cpp +++ b/backends/keymapper/virtual-mouse.cpp @@ -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());