mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -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
|
bool
|
||||||
shm_scroll(struct wl_shm *shm, struct buffer *buf, int rows)
|
shm_scroll(struct wl_shm *shm, struct buffer *buf, int rows)
|
||||||
{
|
{
|
||||||
|
assert(can_punch_hole);
|
||||||
assert(buf->busy);
|
assert(buf->busy);
|
||||||
assert(buf->pix);
|
assert(buf->pix);
|
||||||
assert(buf->wl_buf);
|
assert(buf->wl_buf);
|
||||||
|
|
|
||||||
1
shm.h
1
shm.h
|
|
@ -32,6 +32,7 @@ struct buffer *shm_get_buffer(
|
||||||
struct wl_shm *shm, int width, int height, unsigned long cookie);
|
struct wl_shm *shm, int width, int height, unsigned long cookie);
|
||||||
void shm_fini(void);
|
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);
|
||||||
|
|
||||||
void shm_purge(struct wl_shm *shm, unsigned long cookie);
|
void shm_purge(struct wl_shm *shm, unsigned long cookie);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue