From d1d5f9548812808e58016e935c41e3816c86e8ac Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 21 May 2002 15:03:43 +0000 Subject: Now supports charcell display git-svn-id: svn://svn.rockbox.org/rockbox/trunk@647 a1c6a512-1295-4272-9138-f99709370657 --- apps/credits.c | 63 +++++++++++++++++++++++++++++++++++----------------------- apps/credits.h | 7 ------- 2 files changed, 38 insertions(+), 32 deletions(-) (limited to 'apps') diff --git a/apps/credits.c b/apps/credits.c index f454fd9898..de27af2550 100644 --- a/apps/credits.c +++ b/apps/credits.c @@ -21,10 +21,12 @@ #include "lcd.h" #include "kernel.h" -#define DISPLAY_TIME 200 +struct credit { + char *name; + char *desc; +}; -struct credit credits[CREDIT_COUNT] = { - { "[Credits]", "" }, +struct credit credits[] = { { "Bjorn Stenberg", "Originator, project manager, code" }, { "Linus Nielsen Feltzing", "Electronics, code" }, { "Andy Choi", "Checksums" }, @@ -47,38 +49,49 @@ struct credit credits[CREDIT_COUNT] = { { "Stefan Meyer", "Code" }, }; +#ifdef HAVE_LCD_BITMAP +#define MAX_LINES 6 +#define DISPLAY_TIME HZ*2 +#else +#define MAX_LINES 2 +#define DISPLAY_TIME HZ +#endif + void show_credits(void) { - int i = 0; + int i,j; int line = 0; lcd_clear_display(); - - while(i < CREDIT_COUNT-1) { - if ((line % 4 == 0) && (line!=0)) { - lcd_puts(0, 0, (char *)credits[0].name); +#ifdef HAVE_LCD_BITMAP + lcd_setmargins(0,9); +#endif + + for ( i=0; i