Skip to content

Commit

Permalink
Merge pull request #233 from andy840119/remove-masking-container-usage
Browse files Browse the repository at this point in the history
Use temp way to fix the karaoke sprite text not showing in some graphic cards.
  • Loading branch information
andy840119 authored Jul 7, 2022
2 parents 8577c8f + 7335c51 commit 6031df0
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 6031df0

Please sign in to comment.