summaryrefslogtreecommitdiff
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
parent78a0aed324ec3a57cc4e200a93b96f92120e99be (diff)
downloadrockbox-f124e1499c6c9ae9e75010270c343e2018077302.tar.gz
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
-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)
68 int numnames = sizeof(credits)/sizeof(char*); 68 int numnames = sizeof(credits)/sizeof(char*);
69 char buffer[40]; 69 char buffer[40];
70 70
71 int y=64; 71 int y=LCD_HEIGHT;
72 72
73 int height; 73 int height;
74 int width; 74 int width;
@@ -79,7 +79,7 @@ void roll_credits(void)
79 79
80 while(1) { 80 while(1) {
81 lcd_clear_display(); 81 lcd_clear_display();
82 for ( i=0; i <= (64-y)/height; i++ ) 82 for ( i=0; i <= (LCD_HEIGHT-y)/height; i++ )
83 lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:""); 83 lcd_putsxy(0, i*height+y, line+i<numnames?credits[line+i]:"");
84 snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ", 84 snprintf(buffer, sizeof(buffer), " [Credits] %2d/%2d ",
85 line+1, numnames); 85 line+1, numnames);