-Subtitles seem to work perfectly now.

-Included System.Globalization in a using statement to be more consistent with the rest of the uses of System.
-Removed trailing whitespace while I was at it. I'm OCD and it deeply bothers me, so I'll remove it on all the files that I commit in the future. Can't imagine anyone would object.
This commit is contained in:
brandman211 2012-02-16 00:55:07 +00:00
parent 80d8b617a5
commit a6a81bb76a
1 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Drawing;
@ -165,14 +166,13 @@ namespace BizHawk.MultiClient
return false;
}
//TODO: parse hex!
x = str.IndexOf(' ');
if (x <= 0) return false;
string Color = str.Substring(0, x);
str = str.Substring(x + 1, str.Length - x - 1);
try
{
s.Color = uint.Parse(Color, System.Globalization.NumberStyles.HexNumber);
s.Color = uint.Parse(Color, NumberStyles.HexNumber);
}
catch
{