mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
fix(openmw): MacOS Scaling Bugs
This commit is contained in:
parent
7dcd127295
commit
91a771f851
@ -261,7 +261,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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user