aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-03-07 21:32:57 +0000
committernyamatongwe <devnull@localhost>2007-03-07 21:32:57 +0000
commit4e1f08bdc1ad3f74d291fc81481ad0e3d4d64c3c (patch)
tree10860b4a1daacc07b33d5e7ffafdf450c7307aee /src
parent4ef453956f2b7b10e65abbc912dab76fbad9795a (diff)
downloadscintilla-mirror-4e1f08bdc1ad3f74d291fc81481ad0e3d4d64c3c.tar.gz
Edge line drawn under characters in two phase draw mode.
Fixes bug #1225548.
Diffstat (limited to 'src')
-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;