From 22a7a2d7d34698db41bc08f76f794ca8efb3de1e Mon Sep 17 00:00:00 2001 From: Markus Braun Date: Mon, 14 Oct 2002 12:50:20 +0000 Subject: Added 12 hour clock to status bar on recorders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2621 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings_menu.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/settings_menu.c') diff --git a/apps/settings_menu.c b/apps/settings_menu.c index f91d884..7a7dcea 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -285,6 +285,14 @@ static bool timedate_set(void) #endif return result; } + +static bool timeformat_set(void) +{ + char* names[] = { str(LANG_24_HOUR_CLOCK), + str(LANG_12_HOUR_CLOCK) }; + + return set_option(str(LANG_TIMEFORMAT), &global_settings.timeformat, names, 2, NULL); +} #endif static bool spindown(void) @@ -454,6 +462,7 @@ static bool system_settings_menu(void) #endif #ifdef HAVE_LCD_BITMAP { str(LANG_TIME), timedate_set }, + { str(LANG_TIMEFORMAT), timeformat_set }, #endif { str(LANG_POWEROFF_IDLE), poweroff_idle_timer }, { str(LANG_RESET), reset_settings }, -- cgit v1.1