1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Linus Nielsen Feltzing 2004-07-24 21:35:38 +00:00
parent 5b5003dcb1
commit bdbb0ef470

View file

@ -1092,6 +1092,7 @@ bool set_time_screen(char* string, struct tm *tm)
} }
#endif #endif
#ifdef HAVE_RECORDER_KEYPAD
bool shutdown_screen(void) bool shutdown_screen(void)
{ {
int button; int button;
@ -1099,21 +1100,14 @@ bool shutdown_screen(void)
lcd_stop_scroll(); lcd_stop_scroll();
#ifdef HAVE_LCD_CHARCELLS splash(0, true, str(LANG_CONFIRM_SHUTDOWN));
splash(0, true, "Push STOP to shut off");
#else
splash(0, true, "Push OFF to shut off");
#endif
while(!done) while(!done)
{ {
button = button_get_w_tmo(HZ*2); button = button_get_w_tmo(HZ*2);
switch(button) switch(button)
{ {
#ifdef HAVE_PLAYER_KEYPAD
case BUTTON_STOP:
#else
case BUTTON_OFF: case BUTTON_OFF:
#endif
clean_shutdown(); clean_shutdown();
break; break;
@ -1129,3 +1123,4 @@ bool shutdown_screen(void)
} }
return false; return false;
} }
#endif