mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
shm: scroll: move top/bottom region handling from renderer into shm
This allows us to restore the regions without copying the contents to temporary memory.
This commit is contained in:
parent
00129b1935
commit
0de3701984
3 changed files with 57 additions and 59 deletions
4
shm.h
4
shm.h
|
|
@ -33,7 +33,9 @@ struct buffer *shm_get_buffer(
|
|||
void shm_fini(void);
|
||||
|
||||
bool shm_can_scroll(void);
|
||||
bool shm_scroll(struct wl_shm *shm, struct buffer *buf, int rows);
|
||||
bool shm_scroll(struct wl_shm *shm, struct buffer *buf, int rows,
|
||||
int top_margin, int top_keep_rows,
|
||||
int bottom_margin, int bottom_keep_rows);
|
||||
|
||||
void shm_purge(struct wl_shm *shm, unsigned long cookie);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue