Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use temp way to fix the karaoke sprite text not showing in some graphic cards. #233

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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