From e094eefafb9066024e10f285efb794c21d416567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Fri, 19 Dec 2025 14:26:31 +0100 Subject: [PATCH 1/2] Fix cursor scale affecting trail spacing Closes https://github.com/ppy/osu/issues/36061. Regressed in https://github.com/ppy/osu/pull/35802. It's either this or revert of aforementioned pull. I dunno. --- osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs b/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs index fc5ad2d955..c52bc92f83 100644 --- a/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs +++ b/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs @@ -198,7 +198,7 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor float distance = diff.Length; Vector2 direction = diff / distance; - float interval = Texture.DisplayWidth / 2.5f * IntervalMultiplier; + float interval = Texture.DisplayWidth * CursorScale.X / 2.5f * IntervalMultiplier; float stopAt = distance - (AvoidDrawingNearCursor ? interval : 0); for (float d = interval; d < stopAt; d += interval) From f58e4e48623064cf29e8013ba0cf3bf8f863fda2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Tue, 23 Dec 2025 08:43:07 +0100 Subject: [PATCH 2/2] Use sane initial value for cursor scale to avoid infinite loops --- osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs b/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs index c52bc92f83..8ddb599c2e 100644 --- a/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs +++ b/osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs @@ -49,7 +49,7 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor /// protected bool AllowPartRotation { get; set; } - private Vector2 cursorScale; + private Vector2 cursorScale = Vector2.One; public Vector2 CursorScale {