/[AnywhereTS-MSSQL]/trunk/TSAdminTool/ImageRuntimeConfig.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/ImageRuntimeConfig.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/TSAdminTool/ImageRuntimeConfig.cs	2012/07/12 18:56:31	64
+++ trunk/TSAdminTool/ImageRuntimeConfig.cs	2012/07/14 02:35:50	93
@@ -6,6 +6,7 @@
 using System.Net;
 using System.Windows.Forms;
 using log4net;
+using System.Linq;
 namespace AnywhereTS
 {
     // An image config set for an ATSImage, AnywhereTS Image
@@ -882,10 +883,14 @@
         // twointegers: String with resolution in the format '1024X768'
         // x: (out) The x resolution from the string
         // y: (out) The y resolution from the string
-
-        private void ExtractResolution(string twointegers, out int x, out int y)
+        private void ExtractResolution(string resolution, out int x, out int y)
         {
-            ATSGlobals.ExtractIntegers(twointegers, 'x', out x, out y);
+            x = -1;
+            y = -1;
+            int[] parsed = new int[0];
+            ATSGlobals.ExtractIntegers(resolution, 'x', out parsed);
+            x = parsed.First();
+            y = parsed.Last();
         }
 
     } // class

 

  ViewVC Help
Powered by ViewVC 1.1.22