From 91a771f8519ebe4779e0b2ea673eec1e6376d680 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 16 May 2024 11:15:02 +0000 Subject: [PATCH] fix(openmw): MacOS Scaling Bugs --- apps/openmw/mwinput/mousemanager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwinput/mousemanager.cpp b/apps/openmw/mwinput/mousemanager.cpp index f18ec2ac87..6964699865 100644 --- a/apps/openmw/mwinput/mousemanager.cpp +++ b/apps/openmw/mwinput/mousemanager.cpp @@ -261,7 +261,8 @@ namespace MWInput void MouseManager::warpMouse() { - float uiScale = MWBase::Environment::get().getWindowManager()->getScalingFactor(); - mInputWrapper->warpMouse(static_cast(mGuiCursorX * uiScale), static_cast(mGuiCursorY * uiScale)); + float guiUiScale = Settings::gui().mScalingFactor; + mInputWrapper->warpMouse( + static_cast(mGuiCursorX * guiUiScale), static_cast(mGuiCursorY * guiUiScale)); } }