aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-07-19 09:29:20 +1000
committerNeil <nyamatongwe@gmail.com>2014-07-19 09:29:20 +1000
commit6e260ca3e80f495693592c746be53a2488f78919 (patch)
tree8e85b9a1c53af605107d5c7dc8a1e1166058f1b8 /src
parent286895b1a01a6fd57b9fd5044efad711e9c2216b (diff)
downloadscintilla-mirror-6e260ca3e80f495693592c746be53a2488f78919.tar.gz
Treated SC_PHASES_MULTIPLE as SC_PHASES_TWO when buffered drawing is on.
Diffstat (limited to 'src')
-rw-r--r--src/EditView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index 1514b963b..76e54faac 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -1702,7 +1702,7 @@ void EditView::PaintText(Surface *surfaceWindow, const EditModel &model, PRectan
int lineDocPrevious = -1; // Used to avoid laying out one document line multiple times
AutoLineLayout ll(llc, 0);
std::vector<DrawPhase> phases;
- if (phasesDraw == phasesMultiple) {
+ if ((phasesDraw == phasesMultiple) && !bufferedDraw) {
for (DrawPhase phase = drawBack; phase <= drawCarets; phase = static_cast<DrawPhase>(phase * 2)) {
phases.push_back(phase);
}