diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-20 16:37:59 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-20 16:38:55 +0000 |
| commit | 6f83ef81e54b2695692c76a0a06c94c53cb7e315 (patch) | |
| tree | 92018fb060b312327486d2046b20e29c84e98375 /render.c | |
| parent | completions: zsh: -f,--font accepts multiple, comma separated values (diff) | |
render: use output's subpixel mode when rasterizing glyphs
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
