Revert "Skip all drawing with NoScreenUpdate strategy"

This reverts commit b874bdfd40.

It was commited by mistake and actually does not seem to improve
performance.
This commit is contained in:
Jean-Marc Lasgouttes 2016-07-07 14:21:55 +02:00
parent 535429d914
commit 5a3401c66e

View File

@ -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: