From bdbb0ef4706aeb73ff2122f3864b6249e22e65b5 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 24 Jul 2004 21:35:38 +0000 Subject: Replaced the poweroff confirmation string with a language ID, and removed the shutdown_screen() function for players git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4941 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'apps/screens.c') diff --git a/apps/screens.c b/apps/screens.c index c099822525..ff39258424 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -1092,6 +1092,7 @@ bool set_time_screen(char* string, struct tm *tm) } #endif +#ifdef HAVE_RECORDER_KEYPAD bool shutdown_screen(void) { int button; @@ -1099,21 +1100,14 @@ bool shutdown_screen(void) lcd_stop_scroll(); -#ifdef HAVE_LCD_CHARCELLS - splash(0, true, "Push STOP to shut off"); -#else - splash(0, true, "Push OFF to shut off"); -#endif + splash(0, true, str(LANG_CONFIRM_SHUTDOWN)); + while(!done) { button = button_get_w_tmo(HZ*2); switch(button) { -#ifdef HAVE_PLAYER_KEYPAD - case BUTTON_STOP: -#else case BUTTON_OFF: -#endif clean_shutdown(); break; @@ -1129,3 +1123,4 @@ bool shutdown_screen(void) } return false; } +#endif -- cgit v1.2.3