Skip to content

Commit 6eec2b0

Browse files
authored
Merge pull request #36081 from bdach/esdfiopj
Fix cursor scale affecting trail spacing
2 parents 0999e3f + f58e4e4 commit 6eec2b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osu.Game.Rulesets.Osu/UI/Cursor/CursorTrail.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public partial class CursorTrail : Drawable, IRequireHighFrequencyMousePosition
4949
/// </summary>
5050
protected bool AllowPartRotation { get; set; }
5151

52-
private Vector2 cursorScale;
52+
private Vector2 cursorScale = Vector2.One;
5353

5454
public Vector2 CursorScale
5555
{
@@ -198,7 +198,7 @@ protected void AddTrail(Vector2 position)
198198
float distance = diff.Length;
199199
Vector2 direction = diff / distance;
200200

201-
float interval = Texture.DisplayWidth / 2.5f * IntervalMultiplier;
201+
float interval = Texture.DisplayWidth * CursorScale.X / 2.5f * IntervalMultiplier;
202202
float stopAt = distance - (AvoidDrawingNearCursor ? interval : 0);
203203

204204
for (float d = interval; d < stopAt; d += interval)

0 commit comments

Comments
 (0)