aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-24 08:53:34 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-24 08:53:34 +0000
commitf736d467d9714cd2d53019164d091fa3229f64ed (patch)
treec4ba1a2b0c7b207500d072af3ce18ebee32f7372 /render.c
parentterm: fcft: max/space advance fields have been renamed (diff)
fcft: fcft_glyph_for_wc() has been renamed to fcft_glyph_rasterize()
Diffstat (limited to 'render.c')
-rw-r--r--render.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/render.c b/render.c
index 7aede98d..32f5669c 100644
--- a/render.c
+++ b/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;