aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-02-21 15:29:10 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-02-21 15:29:10 +0000
commit67f97cbca1d9c1396537d0f04afb5a336ac46855 (patch)
treeaeb33443e200da5029a31759d02ddca7f07ee0e5 /shm.h
parentinput: improved debug logging of key press/release (diff)
shm: use XRGB surfaces when we know we wont be using transparency
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/shm.h b/shm.h
index 7d1796bf..b4b075ca 100644
--- a/shm.h
+++ b/shm.h
@@ -55,7 +55,8 @@ void shm_chain_free(struct buffer_chain *chain);
*
* A newly allocated buffer has an age of 1234.
*/
-struct buffer *shm_get_buffer(struct buffer_chain *chain, int width, int height);
+struct buffer *shm_get_buffer(
+ struct buffer_chain *chain, int width, int height, bool with_alpha);
/*
* Returns many buffers, described by 'info', all sharing the same SHM
* buffer pool.
@@ -73,7 +74,7 @@ struct buffer *shm_get_buffer(struct buffer_chain *chain, int width, int height)
void shm_get_many(
struct buffer_chain *chain, size_t count,
int widths[static count], int heights[static count],
- struct buffer *bufs[static count]);
+ struct buffer *bufs[static count], bool with_alpha);
void shm_did_not_use_buf(struct buffer *buf);