mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
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
This commit is contained in:
parent
f39a62fa5e
commit
f9642e9597
2 changed files with 11 additions and 15 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue