mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
Use a 'damage' list to communicate what needs to be updated
Instead of having each cell in the grid track it's own dirtiness, grid operations now append "damage" to a list. This list is consumed every time we render the grid. This allows us to special case some operations, like erase (and in the future, scroll).
This commit is contained in:
parent
10765687db
commit
304f15d696
5 changed files with 269 additions and 89 deletions
3
grid.h
3
grid.h
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
#include "terminal.h"
|
||||
|
||||
void grid_damage_update(struct grid *grid, int start, int length);
|
||||
void grid_damage_erase(struct grid *grid, int start, int length);
|
||||
|
||||
void grid_erase(struct grid *grid, int start, int end);
|
||||
|
||||
void grid_cursor_to(struct grid *grid, int row, int col);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue