summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-14 16:19:42 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-15 10:23:06 +0300
commitfefbd1c259c912fe126a5f34245a8b4c494cb753 (patch)
tree4f1add012361fc9c8430ee43987562252d123bb9 /src/app.c
parentd3b4292242dd938503a31ba68066d53b29f364a4 (diff)
Progressive document rendering
VisBuf now guarantees that all the buffers are sequentially ordered. This ensure complete utilization of all the buffers. Previously some buffers were not used at all, or allocated to the same origin as another one (!). DocumentWidget is able to progressively fill up a buffer while scrolling. After any change to the visible region has been detected (and there are no ongoing changes), prerender the remaining runs one at a time. This solves the issue where one text run would be always unnecessarily rendered while scrolling, even if the scroll distance was just one pixel.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 11c79bcb..bc15183a 100644
--- a/src/app.c
+++ b/src/app.c
@@ -906,7 +906,7 @@ void processEvents_App(enum iAppEventMode eventMode) {
906 iApp *d = &app_; 906 iApp *d = &app_;
907 SDL_Event ev; 907 SDL_Event ev;
908 iBool gotEvents = iFalse; 908 iBool gotEvents = iFalse;
909 postCommands_Periodic(&d->periodic); 909 dispatchCommands_Periodic(&d->periodic);
910 while (nextEvent_App_(d, eventMode, &ev)) { 910 while (nextEvent_App_(d, eventMode, &ev)) {
911#if defined (iPlatformAppleMobile) 911#if defined (iPlatformAppleMobile)
912 if (processEvent_iOS(&ev)) { 912 if (processEvent_iOS(&ev)) {