mirror of
https://github.com/osukey/osukey.git
synced 2025-05-20 21:17:32 +09:00
Multiply resolution before clamping
This commit is contained in:
parent
5ca4a2d2c8
commit
1377f73b46
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user