mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-17 22:05:22 -05: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);
|
||||
|
||||
/* Underline */
|
||||
if (cell->attrs.underline) {
|
||||
draw_underline(term, pix, attrs_to_font(term, &cell->attrs),
|
||||
&fg, x, y, cell_cols);
|
||||
}
|
||||
if (cell->attrs.underline)
|
||||
draw_underline(term, pix, font, &fg, x, y, cell_cols);
|
||||
|
||||
if (cell->attrs.strikethrough) {
|
||||
draw_strikeout(term, pix, attrs_to_font(term, &cell->attrs),
|
||||
&fg, x, y, cell_cols);
|
||||
}
|
||||
if (cell->attrs.strikethrough)
|
||||
draw_strikeout(term, pix, font, &fg, x, y, cell_cols);
|
||||
|
||||
draw_cursor:
|
||||
if (has_cursor && (term->cursor_style != CURSOR_BLOCK || !term->kbd_focus))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue