1
0
Fork 0
forked from len0rd/rockbox

credits and version merged

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@844 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Hak 2002-05-31 08:12:29 +00:00
parent a895626516
commit 65379df445
3 changed files with 17 additions and 12 deletions

View file

@ -58,13 +58,14 @@ struct credit credits[] = {
#define DISPLAY_TIME HZ
#endif
void show_credits(void)
void roll_credits(void)
{
unsigned int i;
int j;
int line = 0;
lcd_clear_display();
#ifdef HAVE_LCD_BITMAP
lcd_setmargins(0,9);
#endif

View file

@ -21,7 +21,7 @@
#define __ROCKBOX_CREDITS_H__
/* Show who worked on the project */
void show_credits(void);
void roll_credits(void);
#endif

View file

@ -82,19 +82,27 @@ int show_logo( void )
return 0;
}
void show_splash(void)
void show_credits(void)
{
if (show_logo() != 0)
return;
int j = 0;
button_get(true);
show_logo();
for (j = 0; j < 10; j++) {
sleep((HZ*2)/10);
if (button_get(false))
return;
}
roll_credits();
}
void main_menu(void)
{
int m;
enum {
Tetris, Screen_Saver, Splash, Credits, Sound
Tetris, Screen_Saver, Version, Sound
};
/* main menu */
@ -104,14 +112,10 @@ void main_menu(void)
{ Tetris, "Tetris", tetris },
{ Screen_Saver, "Screen Saver", screensaver },
#endif
{ Splash, "Splash", show_splash },
{ Credits, "Credits", show_credits },
{ Version, "Version", show_credits },
};
m=menu_init( items, sizeof items / sizeof(struct menu_items) );
menu_run(m);
menu_exit(m);
}