1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-20 15:40:32 +00:00

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

fix(openmw): MacOS Scaling Bugs

See merge request OpenMW/openmw!3963
This commit is contained in:
psi29a 2024-05-16 11:15:03 +00:00
commit 991f887de2

View File

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