aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-03-17 09:39:00 +1100
committernyamatongwe <devnull@localhost>2011-03-17 09:39:00 +1100
commitf132cec2cbb1bb58b0c06c58b77e7267f5a0f45a (patch)
tree7ac9aa4134c50d7cff8df206d88b89eed7dcca96 /src/Editor.cxx
parenta5a12e1515f22fdce76bb32d27b1bb5a922d25a0 (diff)
downloadscintilla-mirror-f132cec2cbb1bb58b0c06c58b77e7267f5a0f45a.tar.gz
Avoid drawing alpha rectangles that extend well before the left of the
window as that causes allocation of large buffers on some platforms.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index f792d160f..bc5e80cc9 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3044,7 +3044,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis
}
// Draw any translucent whole line states
- rcSegment.left = xStart;
+ rcSegment.left = 0;
rcSegment.right = rcLine.right - 1;
if (caret.active && vsDraw.showCaretLineBackground && ll->containsCaret) {
SimpleAlphaRectangle(surface, rcSegment, vsDraw.caretLineBackground.allocated, vsDraw.caretLineAlpha);