diff options
author | Neil <nyamatongwe@gmail.com> | 2017-03-16 14:04:19 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-03-16 14:04:19 +1100 |
commit | 33255ced798333f98f2c406eda6b4106a30cd9b2 (patch) | |
tree | 86f3d6b8a0851a8a6252ca16310e783ecd022de4 /src | |
parent | 47c2bc6e8386e99aa83e5d41159387bac212adf7 (diff) | |
download | scintilla-mirror-33255ced798333f98f2c406eda6b4106a30cd9b2.tar.gz |
For single phase drawing ensure edges and mark underline drawn over fold tags by
moving drawing of edge line and mark underline after fold tags.
Diffstat (limited to 'src')
-rw-r--r-- | src/EditView.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index 6463e1d66..372821080 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -1857,8 +1857,10 @@ void EditView::DrawLine(Surface *surface, const EditModel &model, const ViewStyl if (phase & drawIndicatorsBack) { DrawIndicators(surface, model, vsDraw, ll, line, xStart, rcLine, subLine, lineRange.end, true, model.hoverIndicatorPos); - DrawEdgeLine(surface, vsDraw, ll, rcLine, lineRange, xStart); - DrawMarkUnderline(surface, model, vsDraw, line, rcLine); + if (phasesDraw != phasesOne) { + DrawEdgeLine(surface, vsDraw, ll, rcLine, lineRange, xStart); + DrawMarkUnderline(surface, model, vsDraw, line, rcLine); + } } if (phase & drawText) { @@ -1874,14 +1876,15 @@ void EditView::DrawLine(Surface *surface, const EditModel &model, const ViewStyl DrawIndicators(surface, model, vsDraw, ll, line, xStart, rcLine, subLine, lineRange.end, false, model.hoverIndicatorPos); } - // End of the drawing of the current line + DrawFoldDisplayText(surface, model, vsDraw, ll, line, xStart, rcLine, subLine, subLineStart, phase); + if (phasesDraw == phasesOne) { DrawEOL(surface, model, vsDraw, ll, rcLine, line, lineRange.end, xStart, subLine, subLineStart, background); + DrawEdgeLine(surface, vsDraw, ll, rcLine, lineRange, xStart); + DrawMarkUnderline(surface, model, vsDraw, line, rcLine); } - DrawFoldDisplayText(surface, model, vsDraw, ll, line, xStart, rcLine, subLine, subLineStart, phase); - if (!hideSelection && (phase & drawSelectionTranslucent)) { DrawTranslucentSelection(surface, model, vsDraw, ll, line, rcLine, subLine, lineRange, xStart); } |