mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-13 05:33:51 -04:00
render: break up grid_render()
This commit is contained in:
parent
304f15d696
commit
0ddd96de0d
2 changed files with 158 additions and 152 deletions
3
grid.c
3
grid.c
|
|
@ -170,9 +170,10 @@ grid_scroll(struct grid *grid, int rows)
|
|||
int count = cell_end - cell_start;
|
||||
LOG_DBG("moving %d cells from %d", count, cell_start);
|
||||
|
||||
const size_t bytes = count * sizeof(grid->cells[0]);
|
||||
memmove(
|
||||
&grid->cells[0], &grid->cells[cell_start],
|
||||
count * sizeof(grid->cells[0]));
|
||||
bytes);
|
||||
|
||||
tll_free(grid->damage);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue