Corrected name spelling.
[kugel-rb/myfork.git] / apps / credits.c
blob04c3e00e74d8a3a76316fffaf5bdd893c661ddf7
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Robert Hak <rhak at ramapo.edu>
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #include "credits.h"
21 #include "lcd.h"
22 #include "kernel.h"
23 #include "button.h"
25 char* credits[] = {
26 "Bjorn Stenberg",
27 "Linus Nielsen Feltzing",
28 "Andy Choi",
29 "Andrew Jamieson",
30 "Paul Suade",
31 "Joachim Schiffer",
32 "Daniel Stenberg",
33 "Alan Korr",
34 "Gary Czvitkovicz",
35 "Stuart Martin",
36 "Felix Arends",
37 "Ulf Ralberg",
38 "David Hardeman",
39 "Thomas Saeys",
40 "Grant Wier",
41 "Julien Labruyere",
42 "Nicolas Sauzede",
43 "Robert Hak",
44 "Dave Chapman",
45 "Stefan Meyer",
46 "Eric Linenberg",
47 "Tom Cvitan",
48 "Magnus Oman",
49 "Jerome Kuptz",
50 "Julien Boissinot",
51 "Nuutti Kotivuori",
52 "Heikki Hannikainen",
53 "Hardeep Sidhu",
54 "Markus Braun",
55 "Justin Heiner",
56 "Magnus Holmgren",
57 "Bill Napier",
58 "George Styles",
59 "Mats Lidell"
62 #ifdef HAVE_LCD_BITMAP
63 #define MAX_LINES 7
64 #define DISPLAY_TIME HZ*2
65 #else
66 #define MAX_LINES 2
67 #define DISPLAY_TIME HZ
68 #endif
70 void roll_credits(void)
72 int i;
73 int j;
74 int line = 0;
75 int numnames = sizeof(credits)/sizeof(char*);
77 lcd_clear_display();
79 #ifdef HAVE_LCD_BITMAP
80 lcd_setmargins(0,8);
81 #endif
83 for ( i=0; i < numnames; i += MAX_LINES )
85 lcd_clear_display();
86 #ifdef HAVE_LCD_BITMAP
87 lcd_putsxy(0, 0, " [Credits]",0);
88 #endif
89 for(line = 0;line < MAX_LINES && line+i < numnames;line++)
91 lcd_puts(0, line, credits[line+i]);
94 lcd_update();
96 /* abort on keypress */
97 for ( j=0;j<10;j++ )
99 sleep(DISPLAY_TIME/10);
100 if (button_get(false))
101 return;
104 return;