Skip to content

Commit

Permalink
Merge pull request #6432 from Susko3/factor-scale-in-mouseOutsideAllD…
Browse files Browse the repository at this point in the history
…isplays

Factor window scale in `UserInputManager.mouseOutsideAllDisplays`
  • Loading branch information
peppy authored Nov 24, 2024
2 parents dc98996 + 0d77c76 commit c274d81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Framework/Input/UserInputManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c274d81

Please sign in to comment.