diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-23 19:45:27 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-23 19:45:27 +0000 |
| commit | 0de3701984ff3b09a804d8369dafc3cd5baefdcc (patch) | |
| tree | 7230436425622eb1f1b58d8392dc42fb6400e9e3 /shm.h | |
| parent | render: scroll: use shm scrolling even though we have a top region (diff) | |
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.
Diffstat (limited to 'shm.h')
| -rw-r--r-- | shm.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |
