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

Remove unused blending mode

This commit is contained in:
normalid 2024-07-23 20:50:08 +08:00
parent f7dc0b65da
commit dce894108a

View File

@ -34,8 +34,6 @@ namespace osu.Game.Skinning
private Container keyContainer = null!;
private SkinnableSprite overlayKey = null!;
private OsuSpriteText overlayKeyText = null!;
public LegacyKeyCounter(InputTrigger trigger)
@ -50,9 +48,8 @@ namespace osu.Game.Skinning
Anchor = Anchor.Centre,
Children = new Drawable[]
{
overlayKey = new SkinnableSprite
new SkinnableSprite
{
Blending = Multiplicative,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
BypassAutoSizeAxes = Axes.Both,
@ -89,20 +86,5 @@ namespace osu.Game.Skinning
keyContainer.ScaleTo(1f, TransitionDuration);
keyContainer.FadeColour(KeyUpBackgroundColour, TransitionDuration);
}
public static BlendingParameters Multiplicative
{
get
{
BlendingParameters result = default(BlendingParameters);
result.Source = BlendingType.SrcAlpha;
result.Destination = BlendingType.OneMinusSrcAlpha;
result.SourceAlpha = BlendingType.One;
result.DestinationAlpha = BlendingType.One;
result.RGBEquation = BlendingEquation.Add;
result.AlphaEquation = BlendingEquation.Add;
return result;
}
}
}
}