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 19a07d77f3d754f1680c4d8f19ea0666e74c1956..bc11e3043355f69f0791b32e7742eb4db5e4dbad 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);
         }
     }
 }