From f9642e959725fc43ad7dac0e3c8be842d53aa903 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 5 Sep 2021 10:27:13 +0200 Subject: sixel: calculate default bg once, in init We have all information we need to calculate the default background color in sixel_init(): * Whether the image have transparency or not * The current ANSI background color --- terminal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index df253434..26dcd847 100644 --- a/terminal.h +++ b/terminal.h @@ -576,6 +576,7 @@ struct terminal { unsigned param_idx; /* Parameters seen */ bool transparent_bg; + uint32_t default_bg; /* Application configurable */ unsigned palette_size; /* Number of colors in palette */ -- cgit v1.3