diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-04-20 19:07:51 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-04-20 19:07:51 +0300 |
commit | 95408b1a41b31b645f3a8c3323ab7d3ca4bff26b (patch) | |
tree | f8f137cddcb9a40499d303be95722fd2c6081bce /main/src/core/Mono.Texteditor/Mono.TextEditor/LineBackgroundMarker.cs | |
parent | b70e4e04b4e41b8ec28d7e4b220b401ecf467e7a (diff) | |
parent | de043d330a8bf5855d4d983c804cd36727cb2406 (diff) |
Merge remote-tracking branch 'origin/roslyn' into new-project-model
Diffstat (limited to 'main/src/core/Mono.Texteditor/Mono.TextEditor/LineBackgroundMarker.cs')
-rw-r--r-- | main/src/core/Mono.Texteditor/Mono.TextEditor/LineBackgroundMarker.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/LineBackgroundMarker.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/LineBackgroundMarker.cs index 3fead25185..f74f08ec90 100644 --- a/main/src/core/Mono.Texteditor/Mono.TextEditor/LineBackgroundMarker.cs +++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/LineBackgroundMarker.cs @@ -40,12 +40,12 @@ namespace Mono.TextEditor this.color = color; } - public override bool DrawBackground (TextEditor editor, Cairo.Context cr, double y, LineMetrics metrics) + public override bool DrawBackground (MonoTextEditor editor, Cairo.Context cr, LineMetrics metrics) { if (metrics.SelectionStart > 0) return true; cr.SetSourceColor (color); - cr.Rectangle (metrics.TextRenderStartPosition, y, metrics.TextRenderEndPosition - metrics.TextRenderStartPosition, editor.LineHeight); + cr.Rectangle (metrics.TextRenderStartPosition, metrics.LineYRenderStartPosition, metrics.TextRenderEndPosition - metrics.TextRenderStartPosition, editor.LineHeight); cr.Fill (); return true; } |