From feecaea7ee42630cdb784f8a9a70db716d91f6b5 Mon Sep 17 00:00:00 2001 From: MikiraSora Date: Tue, 30 Jan 2024 12:42:08 +0800 Subject: [PATCH] fix build --- .../FumenVisualEditorViewModel.UserInteractionActions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OngekiFumenEditor/Modules/FumenVisualEditor/ViewModels/FumenVisualEditorViewModel.UserInteractionActions.cs b/OngekiFumenEditor/Modules/FumenVisualEditor/ViewModels/FumenVisualEditorViewModel.UserInteractionActions.cs index 11d7122c..60ba9155 100644 --- a/OngekiFumenEditor/Modules/FumenVisualEditor/ViewModels/FumenVisualEditorViewModel.UserInteractionActions.cs +++ b/OngekiFumenEditor/Modules/FumenVisualEditor/ViewModels/FumenVisualEditorViewModel.UserInteractionActions.cs @@ -1240,8 +1240,8 @@ public void OnMouseWheel(ActionExecutionContext e) 2: 1 2 4 8 5: 5 10 */ - private readonly static int[] xGridUnitUpJumpTable = [0, 1, 2, 3, 4, 5, 3, 7, 0, 3, 0, 0, 0, 0, 0, 0]; - private readonly static int[] xGridUnitDownJumpTable = [0, 0, -1, 0, -2, 0, -3, 0, -4, -3, -5, 0, -3, 0, 0, 0]; + private readonly static int[] xGridUnitUpJumpTable = new[] { 0, 1, 2, 3, 4, 5, 3, 7, 0, 3, 0, 0, 0, 0, 0, 0 }; + private readonly static int[] xGridUnitDownJumpTable = new[] { 0, 0, -1, 0, -2, 0, -3, 0, -4, -3, -5, 0, -3, 0, 0, 0 }; private void OnWheelXGridUnit(MouseWheelEventArgs arg) { var jump = (arg.Delta > 0 ? xGridUnitUpJumpTable : xGridUnitDownJumpTable).ElementAtOrDefault((int)Setting.XGridUnitSpace); @@ -1260,8 +1260,8 @@ private void OnWheelXGridUnit(MouseWheelEventArgs arg) 5: 5 10 15 7: 7 14 */ - private readonly static int[] beatSplitUpJumpTable = [0, 1, 2, 3, 4, 5, 3, 7, 0, 3, 5, 0, 0, 0, 0, 0]; - private readonly static int[] beatSplitDownJumpTable = [0, 0, -1, 0, -2, 0, -3, 0, -4, -3, -5, 0, -3, 0, -7, -5]; + private readonly static int[] beatSplitUpJumpTable = new[] { 0, 1, 2, 3, 4, 5, 3, 7, 0, 3, 5, 0, 0, 0, 0, 0 }; + private readonly static int[] beatSplitDownJumpTable = new[] { 0, 0, -1, 0, -2, 0, -3, 0, -4, -3, -5, 0, -3, 0, -7, -5 }; private void OnWheelBeatSplit(MouseWheelEventArgs arg) { var jump = (arg.Delta > 0 ? beatSplitUpJumpTable : beatSplitDownJumpTable).ElementAtOrDefault(Setting.BeatSplit);