mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-05 21:45:06 +00:00
[ansi-print] Fix unicolor detection
This commit is contained in:
parent
a4db80ca0a
commit
2ebaf0c5ba
1 changed files with 3 additions and 3 deletions
|
@ -175,9 +175,9 @@ struct biimage_t
|
|||
for (unsigned int i = 1; i < 8; i++)
|
||||
if (freq[bg] < freq[i])
|
||||
bg = i;
|
||||
fg = 0;
|
||||
for (unsigned int i = 1; i < 8; i++)
|
||||
if (i != bg && freq[fg] < freq[i])
|
||||
fg = 8;
|
||||
for (unsigned int i = 0; i < 8; i++)
|
||||
if (i != bg && (fg == 8 || freq[fg] < freq[i]))
|
||||
fg = i;
|
||||
if (fg == bg || freq[fg] == 0) {
|
||||
fg = bg;
|
||||
|
|
Loading…
Add table
Reference in a new issue