Output the map file summary at the top of the file (#1203)

This commit is contained in:
Rangi
2023-11-05 09:43:58 -05:00
committed by GitHub
parent f8af569680
commit 143e76b7e3
2 changed files with 82 additions and 70 deletions

View File

@@ -679,7 +679,7 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "rgbgfx %s\n", get_package_version_string());
if (options.verbosity >= Options::VERB_VVVVVV) {
fputc('\n', stderr);
putc('\n', stderr);
static std::array<uint16_t, 21> gfx{
0x1FE, 0x3FF, 0x399, 0x399, 0x3FF, 0x3FF, 0x381, 0x3C3, 0x1FE, 0x078, 0x1FE,
0x3FF, 0x3FF, 0x3FF, 0x37B, 0x37B, 0x0FC, 0x0CC, 0x1CE, 0x1CE, 0x1CE,
@@ -692,17 +692,17 @@ int main(int argc, char *argv[]) {
uint16_t row = gfx[i];
for (uint8_t _ = 0; _ < 10; ++_) {
unsigned char c = row & 1 ? '0' : ' ';
fputc(c, stderr);
putc(c, stderr);
// Double the pixel horizontally, otherwise the aspect ratio looks wrong
fputc(c, stderr);
putc(c, stderr);
row >>= 1;
}
if (i < textbox.size()) {
fputs(textbox[i], stderr);
}
fputc('\n', stderr);
putc('\n', stderr);
}
fputc('\n', stderr);
putc('\n', stderr);
}
fputs("Options:\n", stderr);