diff options
author | nyamatongwe <unknown> | 2007-02-23 00:46:15 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-02-23 00:46:15 +0000 |
commit | 146da05a5858a8c93ebb1b6ef5ce9fcd51749251 (patch) | |
tree | 774f242d3bb0d057d58f2cc4a4d669aa99eb9bb9 /src | |
parent | 34d30ad243b4cea48edd3dac790791f8f9d15650 (diff) | |
download | scintilla-mirror-146da05a5858a8c93ebb1b6ef5ce9fcd51749251.tar.gz |
Bug #1656532. Changed to use foreground of STYLE_DEFAULT but
allow whitespace foreground to override.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index bf274ee60..f2c76116f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2374,6 +2374,10 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis lineEnd = ll->LineStart(subLine + 1); } + ColourAllocated wrapColour = vsDraw.styles[STYLE_DEFAULT].fore.allocated; + if (vsDraw.whitespaceForegroundSet) + wrapColour = vsDraw.whitespaceForeground.allocated; + bool drawWrapMarkEnd = false; if (wrapVisualFlags & SC_WRAPVISUALFLAG_END) { @@ -2411,7 +2415,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis else rcPlace.right = rcPlace.left + vsDraw.aveCharWidth; - DrawWrapMarker(surface, rcPlace, false, vsDraw.whitespaceForeground.allocated); + DrawWrapMarker(surface, rcPlace, false, wrapColour); } xStart += actualWrapVisualStartIndent * vsDraw.aveCharWidth; @@ -2478,7 +2482,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis if (twoPhaseDraw) { DrawEOL(surface, vsDraw, rcLine, ll, line, lineEnd, xStart, subLine, subLineStart, overrideBackground, background, - drawWrapMarkEnd, vsDraw.whitespaceForeground.allocated); + drawWrapMarkEnd, wrapColour); } inIndentation = subLine == 0; // Do not handle indentation except on first subline. @@ -2677,7 +2681,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis if (!twoPhaseDraw) { DrawEOL(surface, vsDraw, rcLine, ll, line, lineEnd, xStart, subLine, subLineStart, overrideBackground, background, - drawWrapMarkEnd, vsDraw.whitespaceForeground.allocated); + drawWrapMarkEnd, wrapColour); } if ((vsDraw.selAlpha != SC_ALPHA_NOALPHA) && (ll->selStart >= 0) && (ll->selEnd >= 0)) { int startPosSel = (ll->selStart < posLineStart) ? posLineStart : ll->selStart; |