diff --git a/osu.Framework/Input/UserInputManager.cs b/osu.Framework/Input/UserInputManager.cs index c08f0b2f63..2d2cbf6314 100644 --- a/osu.Framework/Input/UserInputManager.cs +++ b/osu.Framework/Input/UserInputManager.cs @@ -98,6 +98,9 @@ private bool mouseOutsideAllDisplays(Vector2 mousePosition) break; } + float scale = Host.Window is ISDLWindow window ? window.Scale : 1; + mousePosition /= scale; + int x = (int)MathF.Floor(windowLocation.X + mousePosition.X); int y = (int)MathF.Floor(windowLocation.Y + mousePosition.Y);