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:
Jens Arnold 2005-01-17 00:59:54 +00:00
parent 78a0aed324
commit f124e1499c

View file

@ -68,7 +68,7 @@ void roll_credits(void)
int numnames = sizeof(credits)/sizeof(char*);
char buffer[40];
int y=64;
int y=LCD_HEIGHT;
int height;
int width;
@ -79,7 +79,7 @@ void roll_credits(void)
while(1) {
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]:"");
snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ",
line+1, numnames);