summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-04 14:54:02 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-04 14:54:02 +0300
commit137d5b32a4b8d29e9a9578a1fb47c673290647be (patch)
tree96b69b479aa6d14e88b0da5cfa664c7dfcddb634 /src/ui/window.c
parenteb1e613d1309c51e299888290766896a850e9171 (diff)
Changing the document content text size
The glyph cache is purged whenever font sizes change. UI fonts are deliberately not changed in size so that UI metrics don't have to be recomputed.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 7db0977b..eaab6ac5 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -205,7 +205,7 @@ static void setupUserInterface_Window(iWindow *d) {
205 iClob(newIcon_LabelWidget("\U0001f513", 0, 0, "server.showcert")), 205 iClob(newIcon_LabelWidget("\U0001f513", 0, 0, "server.showcert")),
206 frameless_WidgetFlag | tight_WidgetFlag); 206 frameless_WidgetFlag | tight_WidgetFlag);
207 setId_Widget(as_Widget(lock), "navbar.lock"); 207 setId_Widget(as_Widget(lock), "navbar.lock");
208 setFont_LabelWidget(lock, symbols_FontId); 208 setFont_LabelWidget(lock, defaultSymbols_FontId);
209 updateTextCStr_LabelWidget(lock, "\U0001f512"); 209 updateTextCStr_LabelWidget(lock, "\U0001f512");
210 iInputWidget *url = new_InputWidget(0); 210 iInputWidget *url = new_InputWidget(0);
211 setId_Widget(as_Widget(url), "url"); 211 setId_Widget(as_Widget(url), "url");
@@ -545,7 +545,7 @@ void draw_Window(iWindow *d) {
545#if 0 545#if 0
546 /* Text cache debugging. */ { 546 /* Text cache debugging. */ {
547 SDL_Texture *cache = glyphCache_Text(); 547 SDL_Texture *cache = glyphCache_Text();
548 SDL_Rect rect = { d->root->rect.size.x - 640, 0, 640, 4 * 640 }; 548 SDL_Rect rect = { d->root->rect.size.x - 640, 0, 640, 5 * 640 };
549 SDL_SetRenderDrawColor(d->render, 0, 0, 0, 255); 549 SDL_SetRenderDrawColor(d->render, 0, 0, 0, 255);
550 SDL_RenderFillRect(d->render, &rect); 550 SDL_RenderFillRect(d->render, &rect);
551 SDL_RenderCopy(d->render, glyphCache_Text(), NULL, &rect); 551 SDL_RenderCopy(d->render, glyphCache_Text(), NULL, &rect);