summaryrefslogtreecommitdiff
path: root/tools/bmp_logo.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bmp_logo.c')
-rw-r--r--tools/bmp_logo.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/tools/bmp_logo.c b/tools/bmp_logo.c
index c473baa0dd..8e728e23c3 100644
--- a/tools/bmp_logo.c
+++ b/tools/bmp_logo.c
@@ -120,25 +120,13 @@ int main (int argc, char *argv[])
b->palette[(int)(i*3+0)] = fgetc(fp);
x=fgetc(fp);
-#if 0
- if ((i%4) == 0)
- putchar ('\t');
- printf ("0x%02X, 0x%02X, 0x%02X,%s",
- b->palette[(int)(i*3+0)],
- b->palette[(int)(i*3+1)],
- b->palette[(int)(i*3+2)],
- ((i%4) == 3) ? "\n" : " "
- );
-#else
- if ((i%8) == 0)
- putchar ('\t');
- printf ("0x0%X%X%X,%s",
+ printf ("%s0x0%X%X%X,%s",
+ ((i%8) == 0) ? "\t" : " ",
(b->palette[(int)(i*3+0)] >> 4) & 0x0F,
(b->palette[(int)(i*3+1)] >> 4) & 0x0F,
(b->palette[(int)(i*3+2)] >> 4) & 0x0F,
- ((i%8) == 7) ? "\n" : " "
+ ((i%8) == 7) ? "\n" : ""
);
-#endif
}
/* read the bitmap; leave room for default color map */