Color verbose output as magenta

Output RGBASM's lexed tokens at level 5 (TRACE)
This commit is contained in:
Rangi42
2025-08-05 00:00:57 -04:00
parent ac75a085fa
commit 2cae47a5a2
9 changed files with 35 additions and 2 deletions
+2
View File
@@ -142,11 +142,13 @@ Png::Png(char const *filename, std::streambuf &file) {
}
if (checkVerbosity(VERB_INFO)) {
style_Set(stderr, STYLE_MAGENTA, false);
fprintf(stderr, "Embedded PNG palette has %d colors: [", nbColors);
for (int i = 0; i < nbColors; ++i) {
fprintf(stderr, "%s#%08x", i > 0 ? ", " : "", palette[i].toCSS());
}
fprintf(stderr, "]\n");
style_Reset(stderr);
}
} else {
verbosePrint(VERB_INFO, "No embedded PNG palette\n");