summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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