ADSB RX text color bugfix

ADSB RX entries now "age" after 10 and 20 seconds
This commit is contained in:
furrtek
2017-08-27 21:03:17 +01:00
parent a08ee18e3b
commit 3aae333974
7 changed files with 85 additions and 26 deletions

View File

@@ -51,8 +51,10 @@ int Painter::draw_string(Point p, const Font& font, const Color foreground,
for(const auto c : text) {
if (escape) {
pen = term_colors[c & 7];
if (!c) pen = foreground;
if (c <= 15)
pen = term_colors[c & 15];
else
pen = foreground;
escape = false;
} else {
if (c == '\x1B') {