mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
terminal: add term_damage_view()
This ensures everything *visible* (i.e. maybe scrolled back content) is re-rendered.
This commit is contained in:
parent
d8d4b34362
commit
8a65d52b21
2 changed files with 8 additions and 0 deletions
|
|
@ -21,6 +21,13 @@ term_damage_all(struct terminal *term)
|
|||
grid_row(term->grid, i)->dirty = true;
|
||||
}
|
||||
|
||||
void
|
||||
term_damage_view(struct terminal *term)
|
||||
{
|
||||
for (int i = 0; i < term->rows; i++)
|
||||
grid_row_in_view(term->grid, i)->dirty = true;
|
||||
}
|
||||
|
||||
void
|
||||
term_damage_scroll(struct terminal *term, enum damage_type damage_type,
|
||||
struct scroll_region region, int lines)
|
||||
|
|
|
|||
|
|
@ -250,6 +250,7 @@ struct terminal {
|
|||
};
|
||||
|
||||
void term_damage_all(struct terminal *term);
|
||||
void term_damage_view(struct terminal *term);
|
||||
void term_damage_scroll(
|
||||
struct terminal *term, enum damage_type damage_type,
|
||||
struct scroll_region region, int lines);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue