render: render_osd() now needs a ‘font’ argument

This commit is contained in:
Daniel Eklöf 2021-07-22 21:23:29 +02:00
parent 5fe23c0215
commit 4a41575cb5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);