diff options
Diffstat (limited to 'main/src/core/Mono.Texteditor/Mono.TextEditor/UnderlineMarker.cs')
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor/UnderlineMarker.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/UnderlineMarker.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/UnderlineMarker.cs index 0e8f4240d2..06698c143b 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor/UnderlineMarker.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/UnderlineMarker.cs @@ -57,12 +57,13 @@ namespace Mono.TextEditor public int EndCol { get; set; } public bool Wave { get; set; } - public override void Draw (TextEditor editor, Cairo.Context cr, double y, LineMetrics metrics) + public override void Draw (MonoTextEditor editor, Cairo.Context cr, LineMetrics metrics) { var startOffset = metrics.TextStartOffset; int endOffset = metrics.TextEndOffset; double startXPos = metrics.TextRenderStartPosition; double endXPos = metrics.TextRenderEndPosition; + double y = metrics.LineYRenderStartPosition; var layout = metrics.Layout.Layout; int markerStart = LineSegment.Offset + System.Math.Max (StartCol - 1, 0); @@ -95,7 +96,7 @@ namespace Mono.TextEditor InternalDraw (markerStart, markerEnd, editor, cr, layout, false, startOffset, endOffset, y, startXPos, endXPos); } - void InternalDraw (int markerStart, int markerEnd, TextEditor editor, Cairo.Context cr, Pango.Layout layout, bool selected, int startOffset, int endOffset, double y, double startXPos, double endXPos) + void InternalDraw (int markerStart, int markerEnd, MonoTextEditor editor, Cairo.Context cr, Pango.Layout layout, bool selected, int startOffset, int endOffset, double y, double startXPos, double endXPos) { if (markerStart >= markerEnd) return; |