Removed annoying OK delay from settings. Made cancel text visible.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3094 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2003-01-15 14:16:21 +00:00
parent 0e84a50ea7
commit 093e3b2b7f
2 changed files with 11 additions and 23 deletions

View file

@ -984,11 +984,6 @@ bool set_int(char* string,
case BUTTON_PLAY:
#endif
done = true;
if (*variable != org_value) {
lcd_stop_scroll();
lcd_puts(0, 0, str(LANG_MENU_SETTING_OK));
sleep(HZ/2);
}
break;
#ifdef HAVE_RECORDER_KEYPAD
@ -1001,6 +996,7 @@ bool set_int(char* string,
*variable=org_value;
lcd_stop_scroll();
lcd_puts(0, 0, str(LANG_MENU_SETTING_CANCEL));
lcd_update();
sleep(HZ/2);
}
done = true;
@ -1084,11 +1080,6 @@ bool set_option(char* string, int* variable, char* options[],
case BUTTON_PLAY:
#endif
done = true;
if (*variable != org_value) {
lcd_stop_scroll();
lcd_puts(0, 0, str(LANG_MENU_SETTING_OK));
sleep(HZ/2);
}
break;
#ifdef HAVE_RECORDER_KEYPAD
@ -1101,6 +1092,7 @@ bool set_option(char* string, int* variable, char* options[],
*variable=org_value;
lcd_stop_scroll();
lcd_puts(0, 0, str(LANG_MENU_SETTING_CANCEL));
lcd_update();
sleep(HZ/2);
}
done = true;

View file

@ -74,11 +74,6 @@ bool sleeptimer_screen(void)
case BUTTON_PLAY:
#endif
done = true;
if (changed) {
lcd_stop_scroll();
lcd_puts(0, 0, str(LANG_MENU_SETTING_OK));
sleep(HZ/2);
}
break;
#ifdef HAVE_RECORDER_KEYPAD
@ -90,6 +85,7 @@ bool sleeptimer_screen(void)
if (changed) {
lcd_stop_scroll();
lcd_puts(0, 0, str(LANG_MENU_SETTING_CANCEL));
lcd_update();
set_sleep_timer(org_timer);
sleep(HZ/2);
}