1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 09:30:01 +08:00

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
Unverified
parent 834793be43
commit b64fe68233
+3
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: