Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2013-08-14 08:57:17 +0400
committerMike Krüger <mkrueger@xamarin.com>2013-08-14 08:57:17 +0400
commit608656a04277bedf9de1444dbe50961e866bd4db (patch)
tree3d72d93f70ec5c28ddc6a4e0128dcf6a2b8857c5 /main/src/core/Mono.Texteditor
parent550ba752bf6e0c8cb06c19273195e50cbf2c4777 (diff)
[TextEditor] Fixed coordinate calculation bug.
Diffstat (limited to 'main/src/core/Mono.Texteditor')
-rw-r--r--main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs
index 01b49242c9..3783270082 100644
--- a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs
+++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextViewMargin.cs
@@ -2801,7 +2801,7 @@ namespace Mono.TextEditor
if (BackgroundRenderer == null) {
var metrics = new EndOfLineMetrics {
LineSegment = line,
- TextRenderEndPosition = TextStartPosition + position / Pango.Scale.PangoScale,
+ TextRenderEndPosition = TextStartPosition + position,
LineHeight = _lineHeight
};
foreach (var marker in line.Markers) {
@@ -2809,7 +2809,7 @@ namespace Mono.TextEditor
}
}
- lastLineRenderWidth = position / Pango.Scale.PangoScale;
+ lastLineRenderWidth = position;
if (textEditor.HAdjustment.Value > 0) {
cr.LineWidth = textEditor.Options.Zoom;
for (int i = 0; i < verticalShadowAlphaTable.Length; i++) {