1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-13 20:33:35 +08:00

Merge pull request #36081 from bdach/esdfiopj

Fix cursor scale affecting trail spacing
This commit is contained in:
Dean Herbert
2025-12-23 19:48:34 +09:00
committed by GitHub
Unverified
@@ -49,7 +49,7 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
/// </summary>
protected bool AllowPartRotation { get; set; }
private Vector2 cursorScale;
private Vector2 cursorScale = Vector2.One;
public Vector2 CursorScale
{
@@ -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)