summaryrefslogtreecommitdiff
path: root/firmware/font.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-05-14 23:08:08 +0000
committerJens Arnold <amiconn@rockbox.org>2004-05-14 23:08:08 +0000
commit6dc88dca6678f69c60c17cb0381a9f2e3f66735b (patch)
tree1a8dc664ee0832c53d5f16054d0dfa6035db79eb /firmware/font.c
parent2d446fef067a8fbf86343160df3799870d65aa6a (diff)
downloadrockbox-6dc88dca6678f69c60c17cb0381a9f2e3f66735b.tar.gz
rockbox-6dc88dca6678f69c60c17cb0381a9f2e3f66735b.zip
Some TAB characters slipped in...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4621 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 7c83923904..f9453d5bac 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -238,7 +238,7 @@ struct font* font_load(char *path)
238 /* one-time rotate font bits to rockbox format*/ 238 /* one-time rotate font bits to rockbox format*/
239 rotate_font_bits(pf); 239 rotate_font_bits(pf);
240 240
241 return pf; /* success!*/ 241 return pf; /* success!*/
242} 242}
243 243
244/* 244/*
@@ -309,7 +309,7 @@ static void rotleft(unsigned char *dst, bitmap_t *src, unsigned int width,
309 unsigned int height) 309 unsigned int height)
310{ 310{
311 unsigned int i,j; 311 unsigned int i,j;
312 unsigned int src_words; /* # words of input image*/ 312 unsigned int src_words; /* # words of input image*/
313 unsigned int dst_mask; /* bit mask for destination */ 313 unsigned int dst_mask; /* bit mask for destination */
314 bitmap_t src_mask; /* bit mask for source */ 314 bitmap_t src_mask; /* bit mask for source */
315 315
@@ -331,21 +331,21 @@ static void rotleft(unsigned char *dst, bitmap_t *src, unsigned int width,
331 331
332 /* if set in input, set in rotated output */ 332 /* if set in input, set in rotated output */
333 if (src[i] & src_mask) 333 if (src[i] & src_mask)
334 dst[j] |= dst_mask; 334 dst[j] |= dst_mask;
335 335
336 src_mask >>= 1; /* next input bit */ 336 src_mask >>= 1; /* next input bit */
337 if (src_mask == 0) /* input word done? */ 337 if (src_mask == 0) /* input word done? */
338 { 338 {
339 src_mask = 1 << (sizeof (bitmap_t) * 8 - 1); 339 src_mask = 1 << (sizeof (bitmap_t) * 8 - 1);
340 i++; /* next input word */ 340 i++; /* next input word */
341 } 341 }
342 } 342 }
343 343
344 dst_mask <<= 1; /* next output bit (row) */ 344 dst_mask <<= 1; /* next output bit (row) */
345 if (dst_mask > (1 << 7)) /* output bit > 7? */ 345 if (dst_mask > (1 << 7)) /* output bit > 7? */
346 { 346 {
347 dst_mask = 1; 347 dst_mask = 1;
348 dst += width; /* next output byte row */ 348 dst += width; /* next output byte row */
349 } 349 }
350 } 350 }
351} 351}