Multiply resolution before clamping

This commit is contained in:
smoogipoo 2017-10-04 21:57:29 +09:00
parent 5ca4a2d2c8
commit 1377f73b46

View File

@ -90,7 +90,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.MaximumPoints) * resolution));
n.Points = waveform?.Generate((int)(MathHelper.Clamp(Math.Ceiling(DrawWidth) * Resolution, 0, waveform.MaximumPoints)));
n.Channels = waveform?.Channels ?? 0;
base.ApplyDrawNode(node);