diff options
author | nyamatongwe <devnull@localhost> | 2011-03-17 09:39:00 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-03-17 09:39:00 +1100 |
commit | f132cec2cbb1bb58b0c06c58b77e7267f5a0f45a (patch) | |
tree | 7ac9aa4134c50d7cff8df206d88b89eed7dcca96 | |
parent | a5a12e1515f22fdce76bb32d27b1bb5a922d25a0 (diff) | |
download | scintilla-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.
-rw-r--r-- | src/Editor.cxx | 2 |
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); |