Merge branch 'fix/7562-mouse-position' into 'master'

fix(openmw): MacOS Scaling Bugs

See merge request OpenMW/openmw!3963
esm4-texture
psi29a 8 months ago
commit 991f887de2

@ -259,7 +259,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));
} }
} }

Loading…
Cancel
Save