From f2249604290dbb822b1900d09220d896aac64825 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 28 Nov 2016 20:09:20 +0900 Subject: [PATCH] Update framework. --- osu-framework | 2 +- osu.Game.Mode.Osu/Objects/Drawables/DrawableSlider.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/osu-framework b/osu-framework index fdea70aee3..cc28af53d9 160000 --- a/osu-framework +++ b/osu-framework @@ -1 +1 @@ -Subproject commit fdea70aee37b040d56fac5e9b27a18ed77f2bfb9 +Subproject commit cc28af53d93e2f1c5f0707c5616ed601e0cf9339 diff --git a/osu.Game.Mode.Osu/Objects/Drawables/DrawableSlider.cs b/osu.Game.Mode.Osu/Objects/Drawables/DrawableSlider.cs index cbf11522e4..d43422cebc 100644 --- a/osu.Game.Mode.Osu/Objects/Drawables/DrawableSlider.cs +++ b/osu.Game.Mode.Osu/Objects/Drawables/DrawableSlider.cs @@ -195,7 +195,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables protected override void LoadComplete() { base.LoadComplete(); - path.PathWidth = 50; + path.PathWidth = 32; } protected override void Update() @@ -215,13 +215,13 @@ namespace osu.Game.Modes.Osu.Objects.Drawables { //if we have gone backwards, just clear the path for now. drawnProgress = 0; - path.Positions.Clear(); + path.ClearVertices(); } if (drawnProgress == null) { drawnProgress = 0; - path.Positions.Add(slider.Curve.PositionAt(drawnProgress.Value)); + path.AddVertex(slider.Curve.PositionAt(drawnProgress.Value)); } double segmentSize = 1 / (slider.Curve.Length / 5); @@ -229,13 +229,13 @@ namespace osu.Game.Modes.Osu.Objects.Drawables while (drawnProgress + segmentSize < progress) { drawnProgress += segmentSize; - path.Positions.Add(slider.Curve.PositionAt(drawnProgress.Value)); + path.AddVertex(slider.Curve.PositionAt(drawnProgress.Value)); } if (progress == 1 && drawnProgress != progress) { drawnProgress = progress; - path.Positions.Add(slider.Curve.PositionAt(drawnProgress.Value)); + path.AddVertex(slider.Curve.PositionAt(drawnProgress.Value)); } path.Invalidate(Invalidation.DrawNode);