KEYMAPPER: Fix virtual mouse bound in small rectangle in vkeybd

This commit is contained in:
rsn8887 2020-09-14 15:46:40 -05:00
parent 31be074893
commit 3a5690ebb4

View File

@ -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());