diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2009-11-01 22:48:46 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2009-11-01 22:48:46 +0000 |
commit | 9cd15dad9dd763f0840f0f5386e98bd6437c8593 (patch) | |
tree | 4b85e20e784b83e292012b1c91442a66206fc802 /apps/gui/skin_engine/skin_tokens.c | |
parent | e702e5dbf8f0d6e6d2938db60af6a6d4af806342 (diff) | |
download | rockbox-9cd15dad9dd763f0840f0f5386e98bd6437c8593.tar.gz rockbox-9cd15dad9dd763f0840f0f5386e98bd6437c8593.zip |
new skin token: %cx - 24 hour time format enabled in the setting.. e.g %?cx<24 hour|12 hour>
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23474 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 46adbdc097..6dbceca906 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c | |||
@@ -569,6 +569,12 @@ const char *get_token_value(struct gui_wps *gwps, | |||
569 | #else | 569 | #else |
570 | return NULL; | 570 | return NULL; |
571 | #endif | 571 | #endif |
572 | case WPS_TOKEN_RTC_24HR_SETTING_MODE: | ||
573 | #if CONFIG_RTC | ||
574 | return global_settings.timeformat?NULL:"z"; | ||
575 | #else | ||
576 | return NULL; | ||
577 | #endif | ||
572 | 578 | ||
573 | #if CONFIG_RTC | 579 | #if CONFIG_RTC |
574 | case WPS_TOKEN_RTC_12HOUR_CFG: | 580 | case WPS_TOKEN_RTC_12HOUR_CFG: |