mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-26 06:46:45 -04:00
terminfo: add xterm-kitty underline capability
This commit is contained in:
parent
2e6bc3c61a
commit
44ae8752f1
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -400,6 +400,7 @@ draw_ext_underline(const struct terminal *term, pixman_image_t *pix,
|
|||
/* Make sure the line isn't positioned below the cell */
|
||||
switch (style) {
|
||||
case UNDERLINE_DOUBLE:
|
||||
case UNDERLINE_CURLY:
|
||||
y_ofs = min(underline_offset(term, font),
|
||||
term->cell_height - thickness * 3);
|
||||
break;
|
||||
|
|
@ -458,7 +459,6 @@ draw_ext_underline(const struct terminal *term, pixman_image_t *pix,
|
|||
{{I(half_x), I(top + th)}, {I(full_x), I(bot + th)}},
|
||||
{{I(half_x), I(top - th)}, {I(full_x), I(bot - th)}},
|
||||
}};
|
||||
// TODO: reuse the fill across all cells
|
||||
pixman_image_t *fill = pixman_image_create_solid_fill(color);
|
||||
pixman_composite_trapezoids(
|
||||
PIXMAN_OP_OVER, fill, pix, PIXMAN_a8, 0, 0, 0, 0, 2, traps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue