mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Merge branch 'editor-waveform' into editor-waveform-timeline
This commit is contained in:
@ -50,7 +50,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose
|
|||||||
get { return resolution; }
|
get { return resolution; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value < 0 || value > 1)
|
if (value < 0)
|
||||||
throw new ArgumentOutOfRangeException(nameof(value));
|
throw new ArgumentOutOfRangeException(nameof(value));
|
||||||
|
|
||||||
if (resolution == value)
|
if (resolution == value)
|
||||||
@ -90,7 +90,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose
|
|||||||
n.Texture = texture;
|
n.Texture = texture;
|
||||||
n.Size = DrawSize;
|
n.Size = DrawSize;
|
||||||
n.Shared = sharedData;
|
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;
|
n.Channels = waveform?.Channels ?? 0;
|
||||||
|
|
||||||
base.ApplyDrawNode(node);
|
base.ApplyDrawNode(node);
|
||||||
|
Reference in New Issue
Block a user