aboutsummaryrefslogtreecommitdiff
path: root/shm.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-07-21 11:49:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-07-21 11:49:57 +0000
commit7ab43ebf7464ab72e2041de0a1112feaa81ea89e (patch)
tree4b7892fa257996d112b6b02c91352aa7507fc67c /shm.c
parentmain: unregister SIGUSR2 on exit (diff)
shm: don't set pixman_fmt_without_alpha twice
When selecting 16-bit surfaces, we set pixman_fmt_without_alpha twice, and never set pixman_fmt_with_alpha. This caused 10-bit surfaces to be used instead, since it checks if pixman_fmt_with_alpha has been overridden or not.
Diffstat (limited to 'shm.c')
-rw-r--r--shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shm.c b/shm.c
index b586b504..4680c12c 100644
--- a/shm.c
+++ b/shm.c
@@ -994,7 +994,7 @@ shm_chain_new(struct wayland *wayl, bool scrollable, size_t pix_instances,
pixman_fmt_without_alpha = PIXMAN_a16b16g16r16;
shm_fmt_without_alpha = WL_SHM_FORMAT_XBGR16161616;
- pixman_fmt_without_alpha = PIXMAN_a16b16g16r16;
+ pixman_fmt_with_alpha = PIXMAN_a16b16g16r16;
shm_fmt_with_alpha = WL_SHM_FORMAT_ABGR16161616;
if (!have_logged) {