Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 1534e44

Browse files
committed
fix jump when setting mouse pos
1 parent 4bd5157 commit 1534e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Managers/UInputMan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ namespace RTE {
394394
#ifndef __unix__
395395
position_mouse(static_cast<int>(newPos.GetX()), static_cast<int>(newPos.GetY()));
396396
#else
397-
WarpMouse(newPos.m_X, newPos.m_Y);
397+
WarpMouse(newPos.m_X * g_FrameMan.GetResMultiplier(), newPos.m_Y * g_FrameMan.GetResMultiplier());
398398
#endif
399399
}
400400
}

0 commit comments

Comments
 (0)