aboutsummaryrefslogtreecommitdiff
path: root/sixel.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-05-01 06:34:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-05-01 06:54:30 +0000
commite5a0755451b736c635be58764799ef8d7b536e8d (patch)
tree0d084fbce2136f706369a640a46f04f058a492f2 /sixel.c
parentconfig: gamma-correct-blending: disable by default (diff)
config: tweak.surface-bit-depth now defaults to 'auto'
When set to 'auto', use 10-bit surfaces if gamma-correct blending is enabled, and 8-bit surfaces otherwise. Note that we may still fallback to 8-bit surfaces (without disabling gamma-correct blending) if the compositor does not support 10-bit surfaces. Closes #2082
Diffstat (limited to 'sixel.c')
-rw-r--r--sixel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sixel.c b/sixel.c
index dd933d7a..680c258f 100644
--- a/sixel.c
+++ b/sixel.c
@@ -110,10 +110,10 @@ sixel_init(struct terminal *term, int p1, int p2, int p3)
term->sixel.image.height = 0;
term->sixel.image.alloc_height = 0;
term->sixel.image.bottom_pixel = 0;
- term->sixel.linear_blending = render_do_linear_blending(term);
+ term->sixel.linear_blending = wayl_do_linear_blending(term->wl, term->conf);
term->sixel.pixman_fmt = PIXMAN_a8r8g8b8;
- if (term->conf->tweak.surface_bit_depth == SHM_10_BIT) {
+ if (term->conf->tweak.surface_bit_depth == SHM_BITS_10) {
if (term->wl->shm_have_argb2101010 && term->wl->shm_have_xrgb2101010) {
term->sixel.use_10bit = true;
term->sixel.pixman_fmt = PIXMAN_a2r10g10b10;