--- trunk/TSAdminTool/ImageRuntimeConfig.cs 2012/07/14 00:55:41 92 +++ trunk/TSAdminTool/ImageRuntimeConfig.cs 2012/07/14 02:35:50 93 @@ -6,6 +6,7 @@ using System.IO; 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 @@ namespace AnywhereTS // 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 |