From 5d7d284f8a6d1dbff9ad9c9ae403b14844e7e23f Mon Sep 17 00:00:00 2001 From: "EverLEEst(SangHyeon Lee)" Date: Thu, 27 Jan 2022 20:50:21 +0900 Subject: [PATCH] add arguments for implicit scaling factor setting. --- test/NUITizenGallery/NUITizenGallery.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/test/NUITizenGallery/NUITizenGallery.cs b/test/NUITizenGallery/NUITizenGallery.cs index 19a07d7..bc11e30 100644 --- a/test/NUITizenGallery/NUITizenGallery.cs +++ b/test/NUITizenGallery/NUITizenGallery.cs @@ -179,7 +179,7 @@ namespace NUITizenGallery public void OnSelectionChanged(object sender, SelectionChangedEventArgs ev) { Console.WriteLine($"@@@ OnSelectionChanged() {ev.CurrentSelection}"); - + foreach (object item in ev.CurrentSelection) { if (item == null) @@ -350,8 +350,19 @@ namespace NUITizenGallery static void Main(string[] args) { + string[] emptyArgs = new string[0]; + foreach(string arg in args) + { + Console.WriteLine(arg); + if (arg.ToString() == "--implicit-scaling-factor") + { + Console.WriteLine("NOTE: Scaling Factor is implicitly declaired as 1.5"); + System.Environment.SetEnvironmentVariable("NUI_SCALING_FACTOR","1.5"); + } + } + var app = new Program(); - app.Run(args); + app.Run(emptyArgs); } } } -- 2.7.4