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; return null;
} }
double tryNum; int tryNum;
var result = double.TryParse(color.ToString(), out tryNum); var result = int.TryParse(color.ToString(), out tryNum);
if (result) if (result)
{ {
var stringResult = ((int)tryNum).ToString(); return Color.FromArgb(tryNum);
return ColorTranslator.FromHtml(stringResult);
} }
if (!string.IsNullOrWhiteSpace(color.ToString())) if (!string.IsNullOrWhiteSpace(color.ToString()))