diff options
author | Robert Hak <adiamas@rockbox.org> | 2002-05-18 11:39:32 +0000 |
---|---|---|
committer | Robert Hak <adiamas@rockbox.org> | 2002-05-18 11:39:32 +0000 |
commit | f43f7e74683399788574b646a21aa5099fc446f6 (patch) | |
tree | 36497da9d0ab3f89ccee5abcd466100f83a1f104 | |
parent | cace8a053a80d20764e31dfd44cb0bd87cd1ce21 (diff) | |
download | rockbox-f43f7e74683399788574b646a21aa5099fc446f6.tar.gz rockbox-f43f7e74683399788574b646a21aa5099fc446f6.zip |
list the credits from the menu on rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@630 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/credits.c | 79 | ||||
-rw-r--r-- | apps/credits.h | 35 |
2 files changed, 114 insertions, 0 deletions
diff --git a/apps/credits.c b/apps/credits.c new file mode 100644 index 0000000000..f210d1ffa8 --- /dev/null +++ b/apps/credits.c | |||
@@ -0,0 +1,79 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Robert Hak <rhak at ramapo.edu> | ||
11 | * | ||
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. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | //#ifdef __ROCKBOX_CREDITS_H__ | ||
21 | |||
22 | #include "credits.h" | ||
23 | #include "lcd.h" | ||
24 | #include "kernel.h" | ||
25 | |||
26 | #define DISPLAY_TIME 200 | ||
27 | |||
28 | struct credit credits[CREDIT_COUNT] = { | ||
29 | { "[Credits]", "" }, | ||
30 | { "Björn Stenberg", "Originator, project manager, code" }, | ||
31 | { "Linus Nielsen Feltzing", "Electronics, code" }, | ||
32 | { "Andy Choi", "Checksums" }, | ||
33 | { "Andrew Jamieson", "Schematics, electronics" }, | ||
34 | { "Paul Suade", "Serial port setup" }, | ||
35 | { "Joachim Schiffer", "Schematics, electronics" }, | ||
36 | { "Daniel Stenberg", "Code" }, | ||
37 | { "Alan Korr", "Code" }, | ||
38 | { "Gary Czvitkovicz", "Code" }, | ||
39 | { "Stuart Martin", "Code" }, | ||
40 | { "Felix Arends", "Code" }, | ||
41 | { "Ulf Ralberg", "Thread embryo" }, | ||
42 | { "David Härdeman", "Initial ID3 code" }, | ||
43 | { "Thomas Saeys", "Logo" }, | ||
44 | { "Grant Wier", "Code" }, | ||
45 | { "Julien Labruyére", "Donated Archos Player" }, | ||
46 | { "Nicolas Sauzede", "Display research" }, | ||
47 | { "Robert Hak", "Code, FAQ, Sarcasm" }, | ||
48 | { "Dave Chapman", "Code" }, | ||
49 | { "Stefan Meyer", "Code" }, | ||
50 | }; | ||
51 | |||
52 | void show_credits(void) | ||
53 | { | ||
54 | int i = 0; | ||
55 | int line = 0; | ||
56 | |||
57 | lcd_clear_display(); | ||
58 | |||
59 | while(i < CREDIT_COUNT-1) { | ||
60 | if ((line % 4 == 0) && (line!=0)) { | ||
61 | lcd_puts(0, 0, (char *)credits[0].name); | ||
62 | lcd_update(); | ||
63 | sleep(DISPLAY_TIME); | ||
64 | lcd_clear_display(); | ||
65 | line=0; | ||
66 | } | ||
67 | lcd_puts(0, ++line, (char *)credits[++i].name); | ||
68 | } | ||
69 | |||
70 | if ((i-1)%4 != 0) { | ||
71 | lcd_puts(0, 0, (char *)credits[0].name); | ||
72 | lcd_update(); | ||
73 | sleep(DISPLAY_TIME); | ||
74 | lcd_clear_display(); | ||
75 | } | ||
76 | |||
77 | } | ||
78 | |||
79 | //#endif | ||
diff --git a/apps/credits.h b/apps/credits.h new file mode 100644 index 0000000000..d109e55dde --- /dev/null +++ b/apps/credits.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Robert Hak <rhak at ramapo.edu> | ||
11 | * | ||
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. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef __ROCKBOX_CREDITS_H__ | ||
21 | #define __ROCKBOX_CREDITS_H__ | ||
22 | |||
23 | #define CREDIT_COUNT 21 | ||
24 | |||
25 | struct credit { | ||
26 | const char *name; | ||
27 | const char *desc; | ||
28 | }; | ||
29 | |||
30 | /* Show who worked on the project */ | ||
31 | void show_credits(void); | ||
32 | |||
33 | #endif | ||
34 | |||
35 | |||