diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-24 21:35:38 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-24 21:35:38 +0000 |
commit | bdbb0ef4706aeb73ff2122f3864b6249e22e65b5 (patch) | |
tree | ad4bc20b170cd977ef949000a919ceb36f9071b4 /apps/screens.c | |
parent | 5b5003dcb12b0fe22f497a62d3024f3cf7a10fd1 (diff) | |
download | rockbox-bdbb0ef4706aeb73ff2122f3864b6249e22e65b5.tar.gz rockbox-bdbb0ef4706aeb73ff2122f3864b6249e22e65b5.zip |
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
Diffstat (limited to 'apps/screens.c')
-rw-r--r-- | apps/screens.c | 13 |
1 files changed, 4 insertions, 9 deletions
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) | |||
1092 | } | 1092 | } |
1093 | #endif | 1093 | #endif |
1094 | 1094 | ||
1095 | #ifdef HAVE_RECORDER_KEYPAD | ||
1095 | bool shutdown_screen(void) | 1096 | bool shutdown_screen(void) |
1096 | { | 1097 | { |
1097 | int button; | 1098 | int button; |
@@ -1099,21 +1100,14 @@ bool shutdown_screen(void) | |||
1099 | 1100 | ||
1100 | lcd_stop_scroll(); | 1101 | lcd_stop_scroll(); |
1101 | 1102 | ||
1102 | #ifdef HAVE_LCD_CHARCELLS | 1103 | splash(0, true, str(LANG_CONFIRM_SHUTDOWN)); |
1103 | splash(0, true, "Push STOP to shut off"); | 1104 | |
1104 | #else | ||
1105 | splash(0, true, "Push OFF to shut off"); | ||
1106 | #endif | ||
1107 | while(!done) | 1105 | while(!done) |
1108 | { | 1106 | { |
1109 | button = button_get_w_tmo(HZ*2); | 1107 | button = button_get_w_tmo(HZ*2); |
1110 | switch(button) | 1108 | switch(button) |
1111 | { | 1109 | { |
1112 | #ifdef HAVE_PLAYER_KEYPAD | ||
1113 | case BUTTON_STOP: | ||
1114 | #else | ||
1115 | case BUTTON_OFF: | 1110 | case BUTTON_OFF: |
1116 | #endif | ||
1117 | clean_shutdown(); | 1111 | clean_shutdown(); |
1118 | break; | 1112 | break; |
1119 | 1113 | ||
@@ -1129,3 +1123,4 @@ bool shutdown_screen(void) | |||
1129 | } | 1123 | } |
1130 | return false; | 1124 | return false; |
1131 | } | 1125 | } |
1126 | #endif | ||