commit 7ef19902ea3d3fe6867fc83add2fb157f239d631
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Fri Oct 2 17:26:28 2015 +0200
Small typos in PAINTING_ANALYSIS
diff --git a/development/PAINTING_ANALYSIS b/development/PAINTING_ANALYSIS
index 12b9983..f3b8a47 100644
--- a/development/PAINTING_ANALYSIS
+++ b/development/PAINTING_ANALYSIS
@@ -1,4 +1,6 @@
-# -*- org-mode -*-
+# -*- org -*-
+Understanding the painting process
+
This file tries to describe the state of the metrics/painting
mechanism, and identify the improvements that could be made. The first
section can be read alone, although the context for them is really
@@ -101,7 +103,7 @@ DecorationUpdate). It triggers a recomputation of the
metrics when either:
+ Update::Force has been specified
+ Update::FitCursor has been specified and there is a need to scroll
the display.
- + the current paragraph, after rebreak, has the same height as in
+ + the current paragraph, after rebreak, does not have the same height as in
existing metrics. Note that the Update::SinglePar flag is *never*
taken into account.
@@ -109,7 +111,7 @@ The screen is drawn (with appropriate update strategy),
except when
update flag is Update::None.
-** Metrics computation
+* Metrics computation
This is triggered by bv::updateMetrics, which calls tm::redoParagraph for
+ all visible paragraphs
@@ -124,7 +126,7 @@ of text insets, this will invoke recursively tm::metrics,
which redoes
all the paragraphs of the inset.
-** Drawing the work area.
+* Drawing the work area.
This is done in bv::draw. This method is triggered mainly by
Buffer::changed, which draws all the work areas that show the given buffer.