The conversion to plugin broke the Bounce demo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3787 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9c6abb19ae
commit
10ac8a839f
1 changed files with 4 additions and 2 deletions
|
@ -231,6 +231,7 @@ static int scrollit(void)
|
||||||
int textpos=0;
|
int textpos=0;
|
||||||
|
|
||||||
char* rock="Rockbox! Pure pleasure. Pure fun. Oooh. What fun! ;-) ";
|
char* rock="Rockbox! Pure pleasure. Pure fun. Oooh. What fun! ;-) ";
|
||||||
|
unsigned int rocklen = rb->strlen(rock);
|
||||||
int letter;
|
int letter;
|
||||||
|
|
||||||
rb->lcd_clear_display();
|
rb->lcd_clear_display();
|
||||||
|
@ -245,7 +246,7 @@ static int scrollit(void)
|
||||||
rb->lcd_clear_display();
|
rb->lcd_clear_display();
|
||||||
|
|
||||||
for(i=0, yy=y, xx=x; i< LETTERS_ON_SCREEN; i++) {
|
for(i=0, yy=y, xx=x; i< LETTERS_ON_SCREEN; i++) {
|
||||||
letter = rock[(i+textpos) % (sizeof(rock)-1) ];
|
letter = rock[(i+textpos) % rocklen ];
|
||||||
|
|
||||||
rb->lcd_bitmap((char *)char_gen_12x16[letter-0x20],
|
rb->lcd_bitmap((char *)char_gen_12x16[letter-0x20],
|
||||||
xx, table[yy&63],
|
xx, table[yy&63],
|
||||||
|
@ -282,6 +283,7 @@ static int loopit(void)
|
||||||
unsigned int xsanke=0;
|
unsigned int xsanke=0;
|
||||||
|
|
||||||
char* rock="ROCKbox";
|
char* rock="ROCKbox";
|
||||||
|
unsigned int rocklen = rb->strlen(rock);
|
||||||
|
|
||||||
int show=0;
|
int show=0;
|
||||||
int timeout=0;
|
int timeout=0;
|
||||||
|
@ -334,7 +336,7 @@ static int loopit(void)
|
||||||
timeout--;
|
timeout--;
|
||||||
}
|
}
|
||||||
for(i=0, yy=y, xx=x;
|
for(i=0, yy=y, xx=x;
|
||||||
i<sizeof(rock)-1;
|
i<rocklen;
|
||||||
i++, yy+=values[NUM_YDIST].num, xx+=values[NUM_XDIST].num)
|
i++, yy+=values[NUM_YDIST].num, xx+=values[NUM_XDIST].num)
|
||||||
rb->lcd_bitmap((char *)char_gen_12x16[rock[i]-0x20],
|
rb->lcd_bitmap((char *)char_gen_12x16[rock[i]-0x20],
|
||||||
xtable[xx%71], table[yy&63],
|
xtable[xx%71], table[yy&63],
|
||||||
|
|
Loading…
Reference in a new issue