summaryrefslogtreecommitdiff
path: root/tools/bmp2rb.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-21 16:34:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-21 16:34:41 +0000
commite1fbb12aaf25ea001a9ed419c8e61b8a61d9b75f (patch)
treeb3502a765266692af6dd2dc7e79d0a0d2708deaf /tools/bmp2rb.c
parent01bc8e682ad855ae74193dcfa4bb1e24ac0662b8 (diff)
downloadrockbox-e1fbb12aaf25ea001a9ed419c8e61b8a61d9b75f.tar.gz
rockbox-e1fbb12aaf25ea001a9ed419c8e61b8a61d9b75f.zip
we like each line less than 80 characters wide please
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1890 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/bmp2rb.c')
-rw-r--r--tools/bmp2rb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/bmp2rb.c b/tools/bmp2rb.c
index d527221840..cd850d1f93 100644
--- a/tools/bmp2rb.c
+++ b/tools/bmp2rb.c
@@ -292,7 +292,9 @@ void generate_c_source(char *id, int width, int height, unsigned char *bitmap)
292 id, height, id, width, id ); 292 id, height, id, width, id );
293 293
294 for(i=0, eline=0; i< height; i+=8, eline++) { 294 for(i=0, eline=0; i< height; i+=8, eline++) {
295 for (a=0; a<width; a++) fprintf(f, "0x%02x, ", bitmap[eline*width + a]); 295 for (a=0; a<width; a++)
296 fprintf(f, "0x%02x,%c", bitmap[eline*width + a],
297 (a+1)%13?' ':'\n');
296 fprintf(f, "\n"); 298 fprintf(f, "\n");
297 } 299 }
298 300