commit 5a3401c66eeb5f73599a4882bbc313cd9efee2a0
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Thu Jul 7 14:21:55 2016 +0200

    Revert "Skip all drawing with NoScreenUpdate strategy"
    
    This reverts commit b874bdfd402a94428c8f5fe7ef2180146069120a.
    
    It was commited by mistake and actually does not seem to improve
    performance.
---
 src/BufferView.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index cff66ba..f02cb66 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -3079,8 +3079,12 @@ void BufferView::draw(frontend::Painter & pain)
        switch (d->update_strategy_) {
 
        case NoScreenUpdate:
+               // If no screen painting is actually needed, only some the 
different
+               // coordinates of insets and paragraphs needs to be updated.
                LYXERR(Debug::PAINTING, "Strategy: NoScreenUpdate");
-               // nothing to do
+               pi.full_repaint = true;
+               pi.pain.setDrawingEnabled(false);
+               tm.draw(pi, 0, y);
                break;
 
        case SingleParUpdate:

Reply via email to