diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-27 20:17:43 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-27 20:17:43 +0000 |
| commit | 1d3e677f63ff78b90e1f59fee32b794f0995488a (patch) | |
| tree | f1691bf61159f02a6b3756f295a9db5fcb867d03 | |
| parent | a552f4c99d63023e2170218633d361a5eb38f8b0 (diff) | |
| download | rockbox-1d3e677f63ff78b90e1f59fee32b794f0995488a.zip rockbox-1d3e677f63ff78b90e1f59fee32b794f0995488a.tar.gz rockbox-1d3e677f63ff78b90e1f59fee32b794f0995488a.tar.bz2 rockbox-1d3e677f63ff78b90e1f59fee32b794f0995488a.tar.xz | |
No more blank screens
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1469 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/credits.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/apps/credits.c b/apps/credits.c index dc7cacb..458efd5 100644 --- a/apps/credits.c +++ b/apps/credits.c @@ -63,9 +63,10 @@ char* credits[] = { void roll_credits(void) { - unsigned int i; + int i; int j; int line = 0; + int numnames = sizeof(credits)/sizeof(char*); lcd_clear_display(); @@ -73,6 +74,28 @@ void roll_credits(void) lcd_setmargins(0,8); #endif + for ( i=0; i < numnames; i += MAX_LINES ) + { + lcd_clear_display(); +#ifdef HAVE_LCD_BITMAP + lcd_putsxy(0, 0, " [Credits]",0); +#endif + for(line = 0;line < MAX_LINES && line+i < numnames;line++) + { + lcd_puts(0, line, credits[line+i]); + } + + lcd_update(); + + /* abort on keypress */ + for ( j=0;j<10;j++ ) + { + sleep(DISPLAY_TIME/10); + if (button_get(false)) + return; + } + } + return; for ( i=0; i<sizeof(credits)/sizeof(char*); i++ ) { #ifdef HAVE_LCD_BITMAP lcd_putsxy(0, 0, " [Credits]",0); |