aboutsummaryrefslogtreecommitdiff
path: root/sixel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sixel.c')
-rw-r--r--sixel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sixel.c b/sixel.c
index 0c1ccd1b..2bf47b7e 100644
--- a/sixel.c
+++ b/sixel.c
@@ -169,10 +169,10 @@ sixel_init(struct terminal *term, int p1, int p2, int p3)
if (term->sixel.linear_blending || term->sixel.use_10bit) {
for (size_t i = 0; i < active_palette_entries; i++) {
- uint8_t r = (term->sixel.private_palette[i] >> 16) & 0xff;
- uint8_t g = (term->sixel.private_palette[i] >> 8) & 0xff;
- uint8_t b = (term->sixel.private_palette[i] >> 0) & 0xff;
- term->sixel.private_palette[i] = color_decode_srgb(term, r, g, b);
+ uint8_t r = (term->sixel.shared_palette[i] >> 16) & 0xff;
+ uint8_t g = (term->sixel.shared_palette[i] >> 8) & 0xff;
+ uint8_t b = (term->sixel.shared_palette[i] >> 0) & 0xff;
+ term->sixel.shared_palette[i] = color_decode_srgb(term, r, g, b);
}
}
} else {