1
0
Fork 0
forked from len0rd/rockbox

moved scroll to it's own submenu and we now clear screen on settings reset

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2975 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Hak 2002-12-12 16:56:19 +00:00
parent a2e98c1cd9
commit 65002e8825
2 changed files with 32 additions and 9 deletions

View file

@ -322,7 +322,7 @@ new:
id: LANG_SCROLL_MENU id: LANG_SCROLL_MENU
desc: in display_settings_menu() desc: in display_settings_menu()
eng: "Scroll Speed" eng: "Scroll"
new: new:
id: LANG_RESET id: LANG_RESET
@ -1196,3 +1196,8 @@ id: LANG_SCROLL_STEP_EXAMPLE
desc: Pixels to advance per scroll desc: Pixels to advance per scroll
eng: "Scroll Step Size Setting Example Text" eng: "Scroll Step Size Setting Example Text"
new: new:
id: LANG_SCROLL_SPEED
desc: in display_settings_menu()
eng: "Scroll Speed"
new:

View file

@ -614,6 +614,7 @@ static bool reset_settings(void)
case BUTTON_PLAY: case BUTTON_PLAY:
settings_reset(); settings_reset();
settings_apply(); settings_apply();
lcd_clear_display();
lcd_puts(0,1,str(LANG_RESET_DONE_CLEAR)); lcd_puts(0,1,str(LANG_RESET_DONE_CLEAR));
done = true; done = true;
break; break;
@ -623,6 +624,7 @@ static bool reset_settings(void)
#else #else
case BUTTON_STOP: case BUTTON_STOP:
#endif #endif
lcd_clear_display();
lcd_puts(0,1,str(LANG_RESET_DONE_CANCEL)); lcd_puts(0,1,str(LANG_RESET_DONE_CANCEL));
done = true; done = true;
break; break;
@ -656,23 +658,39 @@ static bool fileview_settings_menu(void)
return result; return result;
} }
static bool scroll_settings_menu(void)
{
int m;
bool result;
struct menu_items items[] = {
{ str(LANG_SCROLL_SPEED), scroll_speed },
{ str(LANG_SCROLL_DELAY), scroll_delay },
#ifdef HAVE_LCD_BITMAP
{ str(LANG_SCROLL_STEP), scroll_step },
{ str(LANG_BIDIR_SCROLL), bidir_limit },
#endif
};
m = menu_init( items, sizeof items / sizeof(struct menu_items) );
result = menu_run(m);
menu_exit(m);
return result;
}
static bool display_settings_menu(void) static bool display_settings_menu(void)
{ {
int m; int m;
bool result; bool result;
struct menu_items items[] = { struct menu_items items[] = {
{ str(LANG_SCROLL_MENU), scroll_speed },
#ifdef HAVE_LCD_BITMAP
{ str(LANG_SCROLL_STEP), scroll_step },
#endif
{ str(LANG_SCROLL_DELAY), scroll_delay },
#ifdef HAVE_LCD_BITMAP
{ str(LANG_BIDIR_SCROLL), bidir_limit },
#endif
{ str(LANG_BACKLIGHT), backlight_timer }, { str(LANG_BACKLIGHT), backlight_timer },
{ str(LANG_BACKLIGHT_ON_WHEN_CHARGING), backlight_on_when_charging }, { str(LANG_BACKLIGHT_ON_WHEN_CHARGING), backlight_on_when_charging },
{ str(LANG_CONTRAST), contrast }, { str(LANG_CONTRAST), contrast },
{ str(LANG_SCROLL_MENU), scroll_settings_menu },
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
{ str(LANG_PM_MENU), peak_meter_menu }, { str(LANG_PM_MENU), peak_meter_menu },
{ str(LANG_VOLUME_DISPLAY), volume_type }, { str(LANG_VOLUME_DISPLAY), volume_type },