can this also close #1222 I wonder?
This commit is contained in:
feos 2018-06-22 20:26:38 +03:00
parent 8979b0abe1
commit 8a2ee98bea
1 changed files with 3 additions and 4 deletions

View File

@ -70,13 +70,12 @@ namespace BizHawk.Client.Common
return null;
}
double tryNum;
var result = double.TryParse(color.ToString(), out tryNum);
int tryNum;
var result = int.TryParse(color.ToString(), out tryNum);
if (result)
{
var stringResult = ((int)tryNum).ToString();
return ColorTranslator.FromHtml(stringResult);
return Color.FromArgb(tryNum);
}
if (!string.IsNullOrWhiteSpace(color.ToString()))