render: no need to call attrs_to_font(), we already have a font reference

This commit is contained in:
Daniel Eklöf 2020-11-19 19:13:00 +01:00
parent cf398df62e
commit ecaa3b4135
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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))