summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-15 13:08:14 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-15 13:08:14 +0300
commit3b12aa1a811684effa6985bd6323532f4c5b5f7d (patch)
tree34f1e9d1eb72cc02164c50f116e23515dae8cf93 /src/ui
parent82530dfa14a1ff8714f387dd20033b5912551f7a (diff)
DocumentWidget: Don't render background tabs
Diffstat (limited to 'src/ui')
-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