1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:29:55 +00:00

fix(openmw): MacOS Scaling Bugs

This commit is contained in:
Dylan 2024-05-16 11:15:02 +00:00 committed by psi29a
parent 7dcd127295
commit 91a771f851

View file

@ -261,7 +261,8 @@ namespace MWInput
void MouseManager::warpMouse() void MouseManager::warpMouse()
{ {
float uiScale = MWBase::Environment::get().getWindowManager()->getScalingFactor(); float guiUiScale = Settings::gui().mScalingFactor;
mInputWrapper->warpMouse(static_cast<int>(mGuiCursorX * uiScale), static_cast<int>(mGuiCursorY * uiScale)); mInputWrapper->warpMouse(
static_cast<int>(mGuiCursorX * guiUiScale), static_cast<int>(mGuiCursorY * guiUiScale));
} }
} }