summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-01-17 00:59:54 +0000
committerJens Arnold <amiconn@rockbox.org>2005-01-17 00:59:54 +0000
commitf124e1499c6c9ae9e75010270c343e2018077302 (patch)
treed04653a52002120064c75ddd765e911fd7f2916b /apps
parent78a0aed324ec3a57cc4e200a93b96f92120e99be (diff)
downloadrockbox-f124e1499c6c9ae9e75010270c343e2018077302.tar.gz
rockbox-f124e1499c6c9ae9e75010270c343e2018077302.tar.bz2
rockbox-f124e1499c6c9ae9e75010270c343e2018077302.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/credits.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/credits.c b/apps/credits.c
index 3f3a6c5f08..190a77edcd 100644
--- a/apps/credits.c
+++ b/apps/credits.c
@@ -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);