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:
commit
991f887de2
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user