summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-08 09:58:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-08 09:58:58 +0000
commit1afa395c2fe08ed937dbb0624ade48e46be87efe (patch)
tree621bd3dcf4c1250790f6cf414645d36611684b79 /apps/screens.c
parentfe706d2754220794d6a22370424391e146b75c95 (diff)
The splash() function's second argument (keymask) is now removed, as it
was not used by any code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4201 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 1b269d93bc..c2ffb44f3c 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -673,8 +673,7 @@ bool f3_screen(void)
#define MAXLINES 2
#endif
-void splash(int ticks, /* how long */
- int keymask, /* what keymask aborts the waiting (if any) */
+void splash(int ticks, /* how long the splash is displayed */
bool center, /* FALSE means left-justified, TRUE means
horizontal and vertical center */
char *fmt, /* what to say *printf style */
@@ -813,24 +812,13 @@ void splash(int ticks, /* how long */
}
lcd_update();
- if(ticks) {
- if(keymask) {
- int start = current_tick;
- int done = ticks + current_tick + 1;
- while (TIME_BEFORE( current_tick, done)) {
- int button = button_get_w_tmo(ticks - (current_tick-start));
- if((button & keymask) == keymask)
- break;
- }
- }
- else
- /* unbreakable! */
- sleep(ticks);
- }
+ if(ticks)
+ /* unbreakable! */
+ sleep(ticks);
}
void charging_splash(void)
{
- splash(2*HZ, 0, true, str(LANG_BATTERY_CHARGE));
+ splash(2*HZ, true, str(LANG_BATTERY_CHARGE));
while (button_get(false));
}