Skip to content

Commit

Permalink
Because masking container has render issue in some graphic cards, so …
Browse files Browse the repository at this point in the history
…using container with masking effect instead.
  • Loading branch information
andy840119 committed Jul 7, 2022
1 parent 8577c8f commit 7335c51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions osu.Framework.Font/Graphics/Sprites/KaraokeSpriteText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public class KaraokeSpriteText : KaraokeSpriteText<LyricSpriteText>
{
internal const double INTERPOLATION_TIMING = 1;

private readonly MaskingContainer<T> leftLyricTextContainer;
private readonly Container<T> leftLyricTextContainer;
private readonly T leftLyricText;

private readonly MaskingContainer<T> rightLyricTextContainer;
private readonly Container<T> rightLyricTextContainer;
private readonly T rightLyricText;

// todo: should have a better way to let user able to customize formats?
Expand All @@ -39,22 +39,22 @@ public KaraokeSpriteText()
AutoSizeAxes = Axes.Both;
InternalChildren = new Drawable[]
{
rightLyricTextContainer = new MaskingContainer<T>
rightLyricTextContainer = new Container<T>
{
AutoSizeAxes = Axes.Y,
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
MaskingEdges = Edges.Left,
Masking = true,
Child = rightLyricText = new T
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
}
},
leftLyricTextContainer = new MaskingContainer<T>
leftLyricTextContainer = new Container<T>
{
AutoSizeAxes = Axes.Y,
MaskingEdges = Edges.Right,
Masking = true,
Child = leftLyricText = new T(),
}
};
Expand Down

0 comments on commit 7335c51

Please sign in to comment.