mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
render: do dirty/clean consistency check before rendering sixels
Since the sixels may render some of the cells, we want the check to happen before the sixels.
This commit is contained in:
parent
49ed8b5e21
commit
6ad84dab2d
1 changed files with 6 additions and 6 deletions
12
render.c
12
render.c
|
|
@ -3315,12 +3315,6 @@ grid_render(struct terminal *term)
|
|||
}
|
||||
}
|
||||
|
||||
pixman_region32_t damage;
|
||||
pixman_region32_init(&damage);
|
||||
|
||||
render_sixel_images(term, buf->pix[0], &damage, &cursor);
|
||||
|
||||
|
||||
#if defined(_DEBUG)
|
||||
for (int r = 0; r < term->rows; r++) {
|
||||
const struct row *row = grid_row_in_view(term->grid, r);
|
||||
|
|
@ -3344,6 +3338,12 @@ grid_render(struct terminal *term)
|
|||
}
|
||||
#endif
|
||||
|
||||
pixman_region32_t damage;
|
||||
pixman_region32_init(&damage);
|
||||
|
||||
render_sixel_images(term, buf->pix[0], &damage, &cursor);
|
||||
|
||||
|
||||
if (term->render.workers.count > 0) {
|
||||
mtx_lock(&term->render.workers.lock);
|
||||
term->render.workers.buf = buf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue