add arguments for implicit scaling factor setting.
authorEverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
Thu, 27 Jan 2022 11:50:21 +0000 (20:50 +0900)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Wed, 16 Feb 2022 08:40:57 +0000 (00:40 -0800)
test/NUITizenGallery/NUITizenGallery.cs

index 19a07d7..bc11e30 100644 (file)
@@ -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);
         }
     }
 }