Skip to content

Commit

Permalink
fix(Studio): Line-suffix rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Oct 26, 2024
1 parent 0bdc49a commit f010238
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Studio/CelesteStudio/Editing/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3732,16 +3732,16 @@ protected override void Draw(PaintEventArgs e, SKSurface surface, SKImageInfo im
CommunicationWrapper.CurrentLine != -1 &&
CommunicationWrapper.CurrentLine < actualToVisualRows.Length)
{
var font = FontManager.EditorFontBold;
var font = FontManager.SKEditorFontBold;

const float padding = 10.0f;
float suffixWidth = font.MeasureWidth(CommunicationWrapper.CurrentLineSuffix);

fillPaint.ColorF = Settings.Instance.Theme.PlayingFrame.ToSkia();
canvas.DrawText(CommunicationWrapper.CurrentLineSuffix,
x: scrollablePosition.X + scrollableSize.Width - suffixWidth - padding,
y: actualToVisualRows[CommunicationWrapper.CurrentLine] * font.LineHeight()+ Font.Offset(),
fillPaint);
y: actualToVisualRows[CommunicationWrapper.CurrentLine] * font.LineHeight() + font.Offset(),
font, fillPaint);
}

var caretPos = GetVisualPosition(Document.Caret);
Expand Down

0 comments on commit f010238

Please sign in to comment.