diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-13 12:18:43 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-13 12:18:43 +0000 |
| commit | 96f480b14d60e40e5e244aa61306754ad5aa7a95 (patch) | |
| tree | cb9392b532f12d31e26aaa9e63d3665095f79feb /render.c | |
| parent | main: free 'cwd' at exit (diff) | |
render: doh! flush the last surface damage *outside* of the rendering loop
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 */ |
