summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index ddca557b..9e322f65 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1769,7 +1769,9 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
1769 if (equal_Rangei(vis, current)) { 1769 if (equal_Rangei(vis, current)) {
1770 remove_Periodic(periodic_App(), d); 1770 remove_Periodic(periodic_App(), d);
1771 /* Scrolling has stopped, begin filling up the buffer. */ 1771 /* Scrolling has stopped, begin filling up the buffer. */
1772 addTicker_App(prerender_DocumentWidget_, d); 1772 if (d->visBuf->buffers[0].texture) {
1773 addTicker_App(prerender_DocumentWidget_, d);
1774 }
1773 } 1775 }
1774 return iTrue; 1776 return iTrue;
1775 } 1777 }
@@ -3837,9 +3839,11 @@ static void prerender_DocumentWidget_(iAny *context) {
3837 .showLinkNumbers = (d->flags & showLinkNumbers_DocumentWidgetFlag) != 0 3839 .showLinkNumbers = (d->flags & showLinkNumbers_DocumentWidgetFlag) != 0
3838 }; 3840 };
3839// printf("%u prerendering\n", SDL_GetTicks()); 3841// printf("%u prerendering\n", SDL_GetTicks());
3840 if (render_DocumentWidget_(d, &ctx, iTrue /* just fill up progressively */)) { 3842 if (d->visBuf->buffers[0].texture) {
3841 /* Something was drawn, should check if there is still more to do. */ 3843 if (render_DocumentWidget_(d, &ctx, iTrue /* just fill up progressively */)) {
3842 addTicker_App(prerender_DocumentWidget_, context); 3844 /* Something was drawn, should check if there is still more to do. */
3845 addTicker_App(prerender_DocumentWidget_, context);
3846 }
3843 } 3847 }
3844} 3848}
3845 3849