aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-22 19:23:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-24 09:02:42 +0000
commit4a41575cb5d2738cf1fb341f0d4413dee1bf67cc (patch)
tree66b7b1cfaa4d8de9b1944fa8a0b5aa9545fbbd04
parentrender: render_osd(): pass font as argument (diff)
render: render_osd() now needs a ‘font’ argument
-rw-r--r--render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/render.c b/render.c
index 91499a43..82720d22 100644
--- a/render.c
+++ b/render.c
@@ -2120,7 +2120,7 @@ render_scrollback_position(struct terminal *term)
term,
win->scrollback_indicator.surf,
win->scrollback_indicator.sub,
- buf, text,
+ term->fonts[0], buf, text,
term->colors.table[0], 0xffu << 24 | term->colors.table[8 + 4],
width - margin - wcslen(text) * term->cell_width, margin);
}
@@ -2154,7 +2154,7 @@ render_render_timer(struct terminal *term, struct timeval render_time)
term,
win->render_timer.surf,
win->render_timer.sub,
- buf, text,
+ term->fonts[0], buf, text,
term->colors.table[0], 0xffu << 24 | term->colors.table[8 + 1],
margin, margin);
}
@@ -3123,7 +3123,7 @@ render_urls(struct terminal *term)
(term->margins.top + y) / term->scale);
render_osd(
- term, surf, sub_surf, bufs[i], label,
+ term, surf, sub_surf, term->fonts[0], bufs[i], label,
fg, 0xffu << 24 | bg, x_margin, y_margin);
free(info[i].text);