1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:32:55 +08:00

Update in-line with framework

This commit is contained in:
smoogipoo 2017-10-04 18:55:38 +09:00
parent 01c839eda7
commit 80e984f72d

View File

@ -92,7 +92,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose
n.Texture = texture;
n.Size = DrawSize;
n.Shared = sharedData;
n.Points = waveform.Generate((int)(MathHelper.Clamp(Math.Ceiling(DrawWidth), 0, waveform.TotalPoints) * resolution));
n.Points = waveform.Generate((int)(MathHelper.Clamp(Math.Ceiling(DrawWidth), 0, waveform.MaximumPoints) * resolution));
n.Channels = waveform.Channels;
base.ApplyDrawNode(node);