mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-12 04:27:51 -05:00
render: sixels: render cursor, if it’s partially covered by an opaque sixel
This commit is contained in:
parent
7d315d7bf9
commit
655e756f58
1 changed files with 3 additions and 1 deletions
4
render.c
4
render.c
|
|
@ -1018,6 +1018,8 @@ render_sixel(struct terminal *term, pixman_image_t *pix,
|
|||
continue;
|
||||
}
|
||||
|
||||
int cursor_col = cursor->row == term_row_no ? cursor->col : -1;
|
||||
|
||||
/*
|
||||
* If image contains transparent parts, render all (dirty)
|
||||
* cells beneath it.
|
||||
|
|
@ -1050,7 +1052,7 @@ render_sixel(struct terminal *term, pixman_image_t *pix,
|
|||
if ((last_row_needs_erase && last_row) ||
|
||||
(last_col_needs_erase && last_col))
|
||||
{
|
||||
render_cell(term, pix, row, col, term_row_no, false);
|
||||
render_cell(term, pix, row, col, term_row_no, cursor_col == col);
|
||||
} else
|
||||
cell->attrs.clean = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue