Allow OsuColour.FromHex to support prefix #.

Coincides with https://github.com/ppy/osu-web/pull/1373
This commit is contained in:
Dean Herbert 2017-07-27 18:03:24 +09:00
parent 834793be43
commit b64fe68233

View File

@ -13,6 +13,9 @@ namespace osu.Game.Graphics
public static Color4 FromHex(string hex)
{
if (hex[0] == '#')
hex = hex.Substring(1);
switch (hex.Length)
{
default: