mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
term: use colors256 array for *all* colors
That is, remove the 'regular' and 'bright' color arrays. This is possible since the 256-color array is defined such that the first 16 colors map to the regular and bright colors.
This commit is contained in:
parent
65e4b93a03
commit
631e0c0870
5 changed files with 22 additions and 74 deletions
|
|
@ -285,15 +285,11 @@ struct terminal {
|
|||
struct {
|
||||
uint32_t fg;
|
||||
uint32_t bg;
|
||||
uint32_t regular[8];
|
||||
uint32_t bright[8];
|
||||
uint32_t colors256[256];
|
||||
double alpha;
|
||||
|
||||
uint32_t default_fg;
|
||||
uint32_t default_bg;
|
||||
uint32_t default_regular[8];
|
||||
uint32_t default_bright[8];
|
||||
uint32_t default_colors256[256];
|
||||
} colors;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue