mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-03 01:40:17 -05:00
render: use output's subpixel mode when rasterizing glyphs
This commit is contained in:
parent
4ca6e760f2
commit
6f83ef81e5
5 changed files with 79 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -404,7 +404,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
|
||||
struct font *font = attrs_to_font(term, &cell->attrs);
|
||||
const struct glyph *glyph = cell->wc != 0
|
||||
? font_glyph_for_wc(font, cell->wc, term->colors.alpha == 0xffff)
|
||||
? font_glyph_for_wc(font, cell->wc, term->font_subpixel)
|
||||
: NULL;
|
||||
|
||||
int cell_cols = glyph != NULL ? max(1, glyph->cols) : 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue