Skip to content

Commit

Permalink
* Removed an obsolete fix for horizontal scrolling.
Browse files Browse the repository at this point in the history
  • Loading branch information
streambot committed Sep 20, 2010
1 parent be8e3ec commit 1ec9a95
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Binary file modified AssemblyInfo.cs
Binary file not shown.
11 changes: 0 additions & 11 deletions TextViewWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ public class TextViewWindow : NativeWindow, IDisposable
public event EventHandler GotFocus;
public event EventHandler LostFocus;

private int _leftMarginWidth = 0;

private ScreenUpdateManager _screenUpdater;

private object _paintSync = new object();
Expand Down Expand Up @@ -170,20 +168,11 @@ private void Paint(Rectangle clipRect)

private void DrawSearchMarks(Graphics g, Rectangle clipRect)
{
//Fix for clip bounds: take into account left margin pane during horizontal scrolling.
Point leftTop = _textView.GetScreenPoint(_textView.VisibleSpan.iStartLine, _textView.VisibleLeftTextColumn);
if (!leftTop.IsEmpty)
{
_leftMarginWidth = leftTop.X;
}

if (clipRect == Rectangle.Empty)
{
clipRect = Rectangle.Truncate(g.VisibleClipBounds);
}

clipRect.X = Math.Max(clipRect.X, _leftMarginWidth);

g.SetClip(clipRect);

DrawRectangles(_searchMarks, AddinSettings.Instance.SearchMarkBorderColor, g);
Expand Down

0 comments on commit 1ec9a95

Please sign in to comment.