From f132cec2cbb1bb58b0c06c58b77e7267f5a0f45a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 17 Mar 2011 09:39:00 +1100 Subject: Avoid drawing alpha rectangles that extend well before the left of the window as that causes allocation of large buffers on some platforms. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3