1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 10:42:54 +08:00

Remove alpha mangling from LegacyDecoder

This commit is contained in:
smoogipoo 2020-08-22 00:15:37 +09:00
parent 2ea6763c73
commit 88d50b6c47

View File

@ -104,10 +104,6 @@ namespace osu.Game.Beatmaps.Formats
try try
{ {
byte alpha = split.Length == 4 ? byte.Parse(split[3]) : (byte)255; byte alpha = split.Length == 4 ? byte.Parse(split[3]) : (byte)255;
if (alpha == 0)
alpha = 255;
colour = new Color4(byte.Parse(split[0]), byte.Parse(split[1]), byte.Parse(split[2]), alpha); colour = new Color4(byte.Parse(split[0]), byte.Parse(split[1]), byte.Parse(split[2]), alpha);
} }
catch catch