Apply some fixes for my own comments

This commit is contained in:
Dean Herbert
2017-06-23 14:02:19 +09:00
parent 076d561615
commit 5dc0b87ef5
2 changed files with 16 additions and 4 deletions

View File

@ -58,9 +58,12 @@ namespace osu.Game.Graphics.UserInterface
Add(maskingContainer = new Container<Path>
{
Masking = true,
RelativeSizeAxes = Axes.Both
RelativeSizeAxes = Axes.Both,
Children = new[]
{
path = new Path { RelativeSizeAxes = Axes.Both, PathWidth = 1 }
}
});
maskingContainer.Add(path = new Path { RelativeSizeAxes = Axes.Both, PathWidth = 1 });
}
public override bool Invalidate(Invalidation invalidation = Invalidation.All, Drawable source = null, bool shallPropagate = true)
@ -72,9 +75,9 @@ namespace osu.Game.Graphics.UserInterface
private void applyPath()
{
path.ClearVertices();
if (values == null) return;
path.ClearVertices();
int count = Math.Max(values.Length, DefaultValueCount);
float max = values.Max(), min = values.Min();