mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04:00
shm: add shm_can_scroll()
This commit is contained in:
parent
6bc9fd4ba1
commit
5ffee08748
2 changed files with 8 additions and 0 deletions
7
shm.c
7
shm.c
|
|
@ -280,9 +280,16 @@ shm_fini(void)
|
|||
}
|
||||
}
|
||||
|
||||
bool
|
||||
shm_can_scroll(void)
|
||||
{
|
||||
return can_punch_hole;
|
||||
}
|
||||
|
||||
bool
|
||||
shm_scroll(struct wl_shm *shm, struct buffer *buf, int rows)
|
||||
{
|
||||
assert(can_punch_hole);
|
||||
assert(buf->busy);
|
||||
assert(buf->pix);
|
||||
assert(buf->wl_buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue