aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-03-07 21:32:57 +0000
committernyamatongwe <unknown>2007-03-07 21:32:57 +0000
commitf0f70d0f03187c31c36cb05730834b54fc559932 (patch)
tree10860b4a1daacc07b33d5e7ffafdf450c7307aee
parentcab068ee15fadfab12ea2eff6427552d7cd22580 (diff)
downloadscintilla-mirror-f0f70d0f03187c31c36cb05730834b54fc559932.tar.gz
Edge line drawn under characters in two phase draw mode.
Fixes bug #1225548.
-rw-r--r--src/Editor.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 93b299090..06ed59144 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2486,6 +2486,13 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis
drawWrapMarkEnd, wrapColour);
}
+ if (vsDraw.edgeState == EDGE_LINE) {
+ int edgeX = theEdge * vsDraw.spaceWidth;
+ rcSegment.left = edgeX + xStart;
+ rcSegment.right = rcSegment.left + 1;
+ surface->FillRectangle(rcSegment, vsDraw.edgecolour.allocated);
+ }
+
inIndentation = subLine == 0; // Do not handle indentation except on first subline.
startseg = ll->LineStart(subLine);
// Foreground drawing loop
@@ -2694,13 +2701,6 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis
}
}
- if (vsDraw.edgeState == EDGE_LINE) {
- int edgeX = theEdge * vsDraw.spaceWidth;
- rcSegment.left = edgeX + xStart;
- rcSegment.right = rcSegment.left + 1;
- surface->FillRectangle(rcSegment, vsDraw.edgecolour.allocated);
- }
-
// Draw any translucent whole line states
rcSegment.left = xStart;
rcSegment.right = rcLine.right - 1;