+ switch (d->metrics_info_.update_strategy) {
+
+ case NoScreenUpdate:
+ // If no screen painting is actually needed, only some the different
+ // coordinates of insets and paragraphs needs to be updated.
+ pi.pain.setDrawingEnabled(false);
+ pi.full_repaint = true;
+ break;
+
+ case SingleParUpdate:
+ // Only the current outermost paragraph will be redrawn.
+ pi.full_repaint = false;
+ tm.drawParagraph(pi, d->metrics_info_.p1, 0, y);
+ break;
+
+ case DecorationUpdate:
+ // FIXME: We should also distinguish DecorationUpdate to avoid text
+ // drawing if possible. This is not possible to do easily right now
+ // because of the single backing pixmap.
+
+ case FullScreenUpdate:
+ // The whole screen, including insets, will be refreshed.
+ pi.full_repaint = true;
+