diff options
author | Robert Hak <adiamas@rockbox.org> | 2002-10-26 05:46:53 +0000 |
---|---|---|
committer | Robert Hak <adiamas@rockbox.org> | 2002-10-26 05:46:53 +0000 |
commit | da407264c28b3a80ad38ef7610e7dde23ba780ac (patch) | |
tree | 00717afbe4705070882c7e293ed1c47cdd022986 /apps/settings_menu.c | |
parent | 5a9e8929cd38604f2a4ea6a9350830ef42c533d6 (diff) |
fixing a yellow build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2751 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 90c7154412..6f527f5224 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -49,6 +49,31 @@ static bool contrast(void) } #ifdef HAVE_LCD_BITMAP + +/** + * Menu to configure the battery display on status bar + */ +static bool battery_type(void) +{ + char* names[] = { str(LANG_DISPLAY_GRAPHIC), + str(LANG_DISPLAY_NUMERIC) }; + + return set_option( str(LANG_BATTERY_DISPLAY), + &global_settings.battery_type, names, 2, NULL); +} + +/** + * Menu to configure the volume display on status bar + */ +static bool volume_type(void) +{ + char* names[] = { str(LANG_DISPLAY_GRAPHIC), + str(LANG_DISPLAY_NUMERIC) }; + + return set_option( str(LANG_VOLUME_DISPLAY), &global_settings.volume_type, + names, 2, NULL); +} + /** * Menu to set the hold time of normal peaks. */ @@ -157,24 +182,6 @@ static bool sort_case(void) return set_bool( str(LANG_SORT_CASE), &global_settings.sort_case ); } -static bool battery_type(void) -{ - char* names[] = { str(LANG_DISPLAY_GRAPHIC), - str(LANG_DISPLAY_NUMERIC) }; - - return set_option( str(LANG_BATTERY_DISPLAY), - &global_settings.battery_type, names, 2, NULL); -} - -static bool volume_type(void) -{ - char* names[] = { str(LANG_DISPLAY_GRAPHIC), - str(LANG_DISPLAY_NUMERIC) }; - - return set_option( str(LANG_VOLUME_DISPLAY), &global_settings.volume_type, - names, 2, NULL); -} - static bool resume(void) { char* names[] = { str(LANG_SET_BOOL_NO), |