mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-13 05:33:51 -04:00
commit
8cb95018c0
2 changed files with 10 additions and 3 deletions
|
|
@ -70,6 +70,8 @@
|
||||||
|
|
||||||
* `generate-alt-random-writes.py --sixel` sometimes crashing,
|
* `generate-alt-random-writes.py --sixel` sometimes crashing,
|
||||||
resulting in PGO build failures.
|
resulting in PGO build failures.
|
||||||
|
* Wrong colors in the 256-color cube
|
||||||
|
(https://codeberg.org/dnkl/foot/issues/479).
|
||||||
|
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
||||||
11
config.c
11
config.c
|
|
@ -2318,15 +2318,20 @@ config_load(struct config *conf, const char *conf_path,
|
||||||
for (size_t r = 0; r < 6; r++) {
|
for (size_t r = 0; r < 6; r++) {
|
||||||
for (size_t g = 0; g < 6; g++) {
|
for (size_t g = 0; g < 6; g++) {
|
||||||
for (size_t b = 0; b < 6; b++) {
|
for (size_t b = 0; b < 6; b++) {
|
||||||
|
uint8_t red = r ? r * 40 + 55 : 0;
|
||||||
|
uint8_t green = g ? g * 40 + 55 : 0;
|
||||||
|
uint8_t blue = b ? b * 40 + 55 : 0;
|
||||||
conf->colors.table[16 + r * 6 * 6 + g * 6 + b]
|
conf->colors.table[16 + r * 6 * 6 + g * 6 + b]
|
||||||
= r * 51 << 16 | g * 51 << 8 | b * 51;
|
= red << 16 | green << 8 | blue << 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* And finally 24 shades of gray */
|
/* And finally 24 shades of gray */
|
||||||
for (size_t i = 0; i < 24; i++)
|
for (size_t i = 0; i < 24; i++) {
|
||||||
conf->colors.table[232 + i] = i * 11 << 16 | i * 11 << 8 | i * 11;
|
uint8_t level = i * 10 + 8;
|
||||||
|
conf->colors.table[232 + i] = level << 16 | level << 8 | level << 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
conf->notify.raw_cmd = xstrdup(
|
conf->notify.raw_cmd = xstrdup(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue