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:
parent
7dcd127295
commit
91a771f851
1 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue