diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2002-05-21 15:14:15 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2002-05-21 15:14:15 +0000 |
| commit | 63882eae821e62a3b33142d24debabde764467c4 (patch) | |
| tree | 9a0692a0d5d46fa0e50f129aaf5d6f844ab5075a | |
| parent | 6050e86643b39159f1fbdb357dd6387c086180df (diff) | |
| download | rockbox-63882eae821e62a3b33142d24debabde764467c4.zip rockbox-63882eae821e62a3b33142d24debabde764467c4.tar.gz rockbox-63882eae821e62a3b33142d24debabde764467c4.tar.bz2 rockbox-63882eae821e62a3b33142d24debabde764467c4.tar.xz | |
Added 1s timeout to splash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@650 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/main_menu.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index 83339e4..f4c0982 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -20,6 +20,9 @@ #include "menu.h" #include "tree.h" #include "credits.h" +#include "lcd.h" +#include "button.h" +#include "kernel.h" void show_splash(void); @@ -108,7 +111,7 @@ int show_logo(void) void show_splash(void) { - + int i; char *rockbox = "ROCKbox!"; lcd_clear_display(); @@ -120,7 +123,11 @@ void show_splash(void) #endif lcd_update(); - while(!button_get()); + for ( i=0;i<10;i++) { + sleep(HZ/10); + if (button_get()) + break; + } } void main_menu(void) |