Bitmapped roll_credits() didn't use the defined LCD height.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5571 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
78a0aed324
commit
f124e1499c
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ void roll_credits(void)
|
||||||
int numnames = sizeof(credits)/sizeof(char*);
|
int numnames = sizeof(credits)/sizeof(char*);
|
||||||
char buffer[40];
|
char buffer[40];
|
||||||
|
|
||||||
int y=64;
|
int y=LCD_HEIGHT;
|
||||||
|
|
||||||
int height;
|
int height;
|
||||||
int width;
|
int width;
|
||||||
|
@ -79,7 +79,7 @@ void roll_credits(void)
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
for ( i=0; i <= (64-y)/height; i++ )
|
for ( i=0; i <= (LCD_HEIGHT-y)/height; i++ )
|
||||||
lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:"");
|
lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:"");
|
||||||
snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ",
|
snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ",
|
||||||
line+1, numnames);
|
line+1, numnames);
|
||||||
|
|
Loading…
Reference in a new issue