diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-01-08 09:58:58 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-01-08 09:58:58 +0000 |
commit | 1afa395c2fe08ed937dbb0624ade48e46be87efe (patch) | |
tree | 621bd3dcf4c1250790f6cf414645d36611684b79 /apps/screens.c | |
parent | fe706d2754220794d6a22370424391e146b75c95 (diff) | |
download | rockbox-1afa395c2fe08ed937dbb0624ade48e46be87efe.tar.gz rockbox-1afa395c2fe08ed937dbb0624ade48e46be87efe.zip |
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.c | 22 |
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) | |||
673 | #define MAXLINES 2 | 673 | #define MAXLINES 2 |
674 | #endif | 674 | #endif |
675 | 675 | ||
676 | void splash(int ticks, /* how long */ | 676 | void splash(int ticks, /* how long the splash is displayed */ |
677 | int keymask, /* what keymask aborts the waiting (if any) */ | ||
678 | bool center, /* FALSE means left-justified, TRUE means | 677 | bool center, /* FALSE means left-justified, TRUE means |
679 | horizontal and vertical center */ | 678 | horizontal and vertical center */ |
680 | char *fmt, /* what to say *printf style */ | 679 | char *fmt, /* what to say *printf style */ |
@@ -813,24 +812,13 @@ void splash(int ticks, /* how long */ | |||
813 | } | 812 | } |
814 | lcd_update(); | 813 | lcd_update(); |
815 | 814 | ||
816 | if(ticks) { | 815 | if(ticks) |
817 | if(keymask) { | 816 | /* unbreakable! */ |
818 | int start = current_tick; | 817 | sleep(ticks); |
819 | int done = ticks + current_tick + 1; | ||
820 | while (TIME_BEFORE( current_tick, done)) { | ||
821 | int button = button_get_w_tmo(ticks - (current_tick-start)); | ||
822 | if((button & keymask) == keymask) | ||
823 | break; | ||
824 | } | ||
825 | } | ||
826 | else | ||
827 | /* unbreakable! */ | ||
828 | sleep(ticks); | ||
829 | } | ||
830 | } | 818 | } |
831 | 819 | ||
832 | void charging_splash(void) | 820 | void charging_splash(void) |
833 | { | 821 | { |
834 | splash(2*HZ, 0, true, str(LANG_BATTERY_CHARGE)); | 822 | splash(2*HZ, true, str(LANG_BATTERY_CHARGE)); |
835 | while (button_get(false)); | 823 | while (button_get(false)); |
836 | } | 824 | } |