mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
fcft: fcft_glyph_for_wc() has been renamed to fcft_glyph_rasterize()
This commit is contained in:
parent
0b2006ecd5
commit
f736d467d9
1 changed files with 4 additions and 2 deletions
6
render.c
6
render.c
|
|
@ -404,7 +404,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
|
||||
struct fcft_font *font = attrs_to_font(term, &cell->attrs);
|
||||
const struct fcft_glyph *glyph = cell->wc != 0
|
||||
? fcft_glyph_for_wc(font, cell->wc, term->font_subpixel)
|
||||
? fcft_glyph_rasterize(font, cell->wc, term->font_subpixel)
|
||||
: NULL;
|
||||
|
||||
int cell_cols = glyph != NULL ? max(1, glyph->cols) : 1;
|
||||
|
|
@ -1553,7 +1553,9 @@ render_search_box(struct terminal *term)
|
|||
if (i == term->search.cursor)
|
||||
draw_bar(term, buf->pix, font, &fg, x, y);
|
||||
|
||||
const struct fcft_glyph *glyph = fcft_glyph_for_wc(font, term->search.buf[i], true);
|
||||
const struct fcft_glyph *glyph = fcft_glyph_rasterize(
|
||||
font, term->search.buf[i], true);
|
||||
|
||||
if (glyph == NULL)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue