From: EverLEEst(SangHyeon Lee) Date: Thu, 27 Jan 2022 11:50:21 +0000 (+0900) Subject: add arguments for implicit scaling factor setting. X-Git-Tag: accepted/tizen/unified/20231205.024657~1170 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d7d284f8a6d1dbff9ad9c9ae403b14844e7e23f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git add arguments for implicit scaling factor setting. --- 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); } } }