diff options
author | Markus Braun <markus.braun@krawel.de> | 2002-10-14 12:50:20 +0000 |
---|---|---|
committer | Markus Braun <markus.braun@krawel.de> | 2002-10-14 12:50:20 +0000 |
commit | 22a7a2d7d34698db41bc08f76f794ca8efb3de1e (patch) | |
tree | f0d5e998a789786c873ee4b8a7054ab314bd90cb /apps/settings_menu.c | |
parent | c7e0bea57ad383593ebf8c106a4cccf8bcd46ba1 (diff) | |
download | rockbox-22a7a2d7d34698db41bc08f76f794ca8efb3de1e.tar.gz rockbox-22a7a2d7d34698db41bc08f76f794ca8efb3de1e.zip |
Added 12 hour clock to status bar on recorders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2621 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index f91d884df9..7a7dceacc3 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -285,6 +285,14 @@ static bool timedate_set(void) | |||
285 | #endif | 285 | #endif |
286 | return result; | 286 | return result; |
287 | } | 287 | } |
288 | |||
289 | static bool timeformat_set(void) | ||
290 | { | ||
291 | char* names[] = { str(LANG_24_HOUR_CLOCK), | ||
292 | str(LANG_12_HOUR_CLOCK) }; | ||
293 | |||
294 | return set_option(str(LANG_TIMEFORMAT), &global_settings.timeformat, names, 2, NULL); | ||
295 | } | ||
288 | #endif | 296 | #endif |
289 | 297 | ||
290 | static bool spindown(void) | 298 | static bool spindown(void) |
@@ -454,6 +462,7 @@ static bool system_settings_menu(void) | |||
454 | #endif | 462 | #endif |
455 | #ifdef HAVE_LCD_BITMAP | 463 | #ifdef HAVE_LCD_BITMAP |
456 | { str(LANG_TIME), timedate_set }, | 464 | { str(LANG_TIME), timedate_set }, |
465 | { str(LANG_TIMEFORMAT), timeformat_set }, | ||
457 | #endif | 466 | #endif |
458 | { str(LANG_POWEROFF_IDLE), poweroff_idle_timer }, | 467 | { str(LANG_POWEROFF_IDLE), poweroff_idle_timer }, |
459 | { str(LANG_RESET), reset_settings }, | 468 | { str(LANG_RESET), reset_settings }, |