From 8655b6f8603f12099e534a10f7840630b3e93026 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sat, 9 Oct 2004 23:25:58 +0000 Subject: * Clean up tools/bmp_logo.c to not add trailing white space * Patch by Hinko Kocevar, 21 Aug 2004: - Group common framebuffer functions in common/lcd.c - Group common framebuffer macros and #defines in include/lcd.h - Provide calc_fbsize() for video ATAG --- tools/bmp_logo.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'tools/bmp_logo.c') 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 */ -- cgit v1.2.1