From c0145f4e81683bdbff4694fd16b045ac1050cd3b Mon Sep 17 00:00:00 2001 From: Susko3 Date: Fri, 22 Nov 2024 22:57:07 +0000 Subject: [PATCH] Factor scale in UserInputManager.mouseOutsideAllDisplays The mouse position is in pixel/client coordinates, while window and displays positions are in window coordinates. --- osu.Framework/Input/UserInputManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Framework/Input/UserInputManager.cs b/osu.Framework/Input/UserInputManager.cs index c08f0b2f63..4c5de68114 100644 --- a/osu.Framework/Input/UserInputManager.cs +++ b/osu.Framework/Input/UserInputManager.cs @@ -87,6 +87,9 @@ private bool mouseOutsideAllDisplays(Vector2 mousePosition) { Point windowLocation; + float scale = Host.Window is ISDLWindow window ? window.Scale : 1; + mousePosition /= scale; + switch (Host.Window.WindowMode.Value) { case WindowMode.Windowed: