mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: doh! flush the last surface damage *outside* of the rendering loop
This commit is contained in:
parent
74c3b4be1a
commit
96f480b14d
1 changed files with 8 additions and 8 deletions
16
render.c
16
render.c
|
|
@ -1463,15 +1463,15 @@ grid_render(struct terminal *term)
|
|||
int cursor_col = cursor.row == r ? cursor.col : -1;
|
||||
render_row(term, buf->pix[0], row, r, cursor_col);
|
||||
}
|
||||
}
|
||||
|
||||
if (first_dirty_row >= 0) {
|
||||
wl_surface_damage_buffer(
|
||||
term->window->surface,
|
||||
term->margins.left,
|
||||
term->margins.top + first_dirty_row * term->cell_height,
|
||||
term->width - term->margins.left - term->margins.right,
|
||||
(term->rows - first_dirty_row) * term->cell_height);
|
||||
}
|
||||
if (first_dirty_row >= 0) {
|
||||
wl_surface_damage_buffer(
|
||||
term->window->surface,
|
||||
term->margins.left,
|
||||
term->margins.top + first_dirty_row * term->cell_height,
|
||||
term->width - term->margins.left - term->margins.right,
|
||||
(term->rows - first_dirty_row) * term->cell_height);
|
||||
}
|
||||
|
||||
/* Signal workers the frame is done */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue