summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-06 16:02:41 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-06 16:03:17 +0200
commit5b80af0e983db5e3d09e207c9fce6790b53dea4d (patch)
tree614a227b3aeade6a2ff3b43424c4f3ea45adc1fc /src/ui/window.c
parentaf0aaf36dcde341d5eb43214297df71eefc90829 (diff)
Rasterize a few glyphs on every frame
Also various widget fixes/improvements.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 9ff22d35..b6465727 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1093,10 +1093,10 @@ static void setupUserInterface_Window(iWindow *d) {
1093// setBackgroundColor_Widget(i.object, tmBannerSideTitle_ColorId); 1093// setBackgroundColor_Widget(i.object, tmBannerSideTitle_ColorId);
1094 } 1094 }
1095 const iMenuItem items[] = { 1095 const iMenuItem items[] = {
1096 { "\U0001f588 Bookmarks", 0, 0, "toolbar.showview arg:0" }, 1096 { pin_Icon " Bookmarks", 0, 0, "toolbar.showview arg:0" },
1097 { "\U00002605 Feeds", 0, 0, "toolbar.showview arg:1" }, 1097 { star_Icon " Feeds", 0, 0, "toolbar.showview arg:1" },
1098 { clock_Icon " History", 0, 0, "toolbar.showview arg:2" }, 1098 { clock_Icon " History", 0, 0, "toolbar.showview arg:2" },
1099 { "\U0001f5b9 Page Outline", 0, 0, "toolbar.showview arg:4" }, 1099 { page_Icon " Page Outline", 0, 0, "toolbar.showview arg:4" },
1100 }; 1100 };
1101 iWidget *menu = makeMenu_Widget(findChild_Widget(toolBar, "toolbar.view"), 1101 iWidget *menu = makeMenu_Widget(findChild_Widget(toolBar, "toolbar.view"),
1102 items, iElemCount(items)); 1102 items, iElemCount(items));
@@ -1707,7 +1707,6 @@ void draw_Window(iWindow *d) {
1707 if (d->isDrawFrozen) { 1707 if (d->isDrawFrozen) {
1708 return; 1708 return;
1709 } 1709 }
1710// printf("num pending: %d\n", numPendingGlyphs_Text());
1711 const int winFlags = SDL_GetWindowFlags(d->win); 1710 const int winFlags = SDL_GetWindowFlags(d->win);
1712 const iBool gotFocus = (winFlags & SDL_WINDOW_INPUT_FOCUS) != 0; 1711 const iBool gotFocus = (winFlags & SDL_WINDOW_INPUT_FOCUS) != 0;
1713 /* Clear the window. The clear color is visible as a border around the window 1712 /* Clear the window. The clear color is visible as a border around the window
@@ -1754,6 +1753,7 @@ void draw_Window(iWindow *d) {
1754 } 1753 }
1755#endif 1754#endif
1756 SDL_RenderPresent(d->render); 1755 SDL_RenderPresent(d->render);
1756 rasterizeSomePendingGlyphs_Text();
1757} 1757}
1758 1758
1759void resize_Window(iWindow *d, int w, int h) { 1759void resize_Window(iWindow *d, int w, int h) {