From: Jean-Marc Lasgouttes Date: Thu, 7 Jul 2016 12:21:55 +0000 (+0200) Subject: Revert "Skip all drawing with NoScreenUpdate strategy" X-Git-Tag: 2.3.0alpha1~1316 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5a3401c66eeb5f73599a4882bbc313cd9efee2a0;p=features.git Revert "Skip all drawing with NoScreenUpdate strategy" This reverts commit b874bdfd402a94428c8f5fe7ef2180146069120a. It was commited by mistake and actually does not seem to improve performance. --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index cff66ba5aa..f02cb66686 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: