From e73e4b45961ffbff72a5fb97fd7d2933fcfd535e Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 8 Dec 2023 21:38:01 +0000 Subject: [PATCH] Bugfix: don't set scalefactor via CLI arg if --scale-factor{x,y} not set --- MusicBoxConverter/Program.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MusicBoxConverter/Program.cs b/MusicBoxConverter/Program.cs index 2fdaacc..1aee63a 100644 --- a/MusicBoxConverter/Program.cs +++ b/MusicBoxConverter/Program.cs @@ -17,8 +17,8 @@ namespace MusicBoxConverter string outputFilename = ""; bool debug = false; MusicBox targetMusicBox = MusicBox.Note30Corrected; - float scaleFactorX = 0.03f; - float scaleFactorY = 4.0f; + float scaleFactorX = -1f; + float scaleFactorY = -1f; for(int i = 0; i < args.Length; i++) { @@ -91,8 +91,10 @@ namespace MusicBoxConverter Debug = debug }; - converter.SetScaleFactorX(scaleFactorX); - converter.SetScaleFactorY(scaleFactorY); + if(scaleFactorX > 0) + converter.SetScaleFactorX(scaleFactorX); + if(scaleFactorY > 0) + converter.SetScaleFactorY(scaleFactorY); converter.Output(outputFilename); return 0;