mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
wip: use a sliding window instead of memmove() to scroll
Instead of memmoving a large amount of data on every scroll, use a sliding window. That is, each time we scroll, we offset origin.
This commit is contained in:
parent
9e3b8ab3ff
commit
d70956da08
7 changed files with 140 additions and 108 deletions
4
grid.h
4
grid.h
|
|
@ -1,3 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include "terminal.h"
|
||||
|
||||
struct cell *grid_get_range(struct grid *grid, size_t start, size_t *length);
|
||||
void grid_memset(struct grid *grid, size_t start, int c, size_t length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue