mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
render: no need to call attrs_to_font(), we already have a font reference
This commit is contained in:
parent
cf398df62e
commit
ecaa3b4135
1 changed files with 4 additions and 8 deletions
12
render.c
12
render.c
|
|
@ -539,15 +539,11 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
||||||
pixman_image_unref(clr_pix);
|
pixman_image_unref(clr_pix);
|
||||||
|
|
||||||
/* Underline */
|
/* Underline */
|
||||||
if (cell->attrs.underline) {
|
if (cell->attrs.underline)
|
||||||
draw_underline(term, pix, attrs_to_font(term, &cell->attrs),
|
draw_underline(term, pix, font, &fg, x, y, cell_cols);
|
||||||
&fg, x, y, cell_cols);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cell->attrs.strikethrough) {
|
if (cell->attrs.strikethrough)
|
||||||
draw_strikeout(term, pix, attrs_to_font(term, &cell->attrs),
|
draw_strikeout(term, pix, font, &fg, x, y, cell_cols);
|
||||||
&fg, x, y, cell_cols);
|
|
||||||
}
|
|
||||||
|
|
||||||
draw_cursor:
|
draw_cursor:
|
||||||
if (has_cursor && (term->cursor_style != CURSOR_BLOCK || !term->kbd_focus))
|
if (has_cursor && (term->cursor_style != CURSOR_BLOCK || !term->kbd_focus))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue