diff options
author | Neil <nyamatongwe@gmail.com> | 2019-04-02 09:21:55 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-04-02 09:21:55 +1100 |
commit | 90bf33ca0ae3f902a193a84f4940187a5f4e355d (patch) | |
tree | 0b316a2b0534939c26a402efbfc0429a941e6c73 | |
parent | 6009be9e63f175479df01cd64d3ef6e0724afd6c (diff) | |
download | scintilla-mirror-90bf33ca0ae3f902a193a84f4940187a5f4e355d.tar.gz |
Backport: Removed variable which duplicated meaning of earlier variable.
Backport of changeset 7398:8d77e52c39f3.
-rw-r--r-- | src/EditView.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index cae602b62..e82f09ee2 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -1129,7 +1129,6 @@ void EditView::DrawFoldDisplayText(Surface *surface, const EditModel &model, con rcSegment.right = rcSegment.left + static_cast<XYPOSITION>(widthFoldDisplayText); const ColourOptional background = vsDraw.Background(model.pdoc->GetMark(line), model.caret.active, ll->containsCaret); - FontAlias textFont = vsDraw.styles[STYLE_FOLDDISPLAYTEXT].font; ColourDesired textFore = vsDraw.styles[STYLE_FOLDDISPLAYTEXT].fore; if (eolInSelection && (vsDraw.selColours.fore.isSet)) { textFore = (eolInSelection == 1) ? vsDraw.selColours.fore : vsDraw.selAdditionalForeground; @@ -1158,11 +1157,11 @@ void EditView::DrawFoldDisplayText(Surface *surface, const EditModel &model, con if (phase & drawText) { if (phasesDraw != phasesOne) { - surface->DrawTextTransparent(rcSegment, textFont, + surface->DrawTextTransparent(rcSegment, fontText, rcSegment.top + vsDraw.maxAscent, foldDisplayText, lengthFoldDisplayText, textFore); } else { - surface->DrawTextNoClip(rcSegment, textFont, + surface->DrawTextNoClip(rcSegment, fontText, rcSegment.top + vsDraw.maxAscent, foldDisplayText, lengthFoldDisplayText, textFore, textBack); } |