From 1afa395c2fe08ed937dbb0624ade48e46be87efe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 8 Jan 2004 09:58:58 +0000 Subject: 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 --- apps/screens.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'apps/screens.c') 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)); } -- cgit v1.2.3