1
0
Fork 0
forked from len0rd/rockbox

Updated recording trigger screen (seems to be a feature almost noone uses?)

problems/complaints in http://forums.rockbox.org/index.php?topic=16837.0
there is a known issue that on this screen the stop icon wont update, I dont know why and noone else wants to look at it, so hopefully this will force another set of eyes on it.. this is only a graphical issue... recordings still work fine


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17643 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-05-28 10:55:39 +00:00
parent 0f7f5f2267
commit ff469ab573
21 changed files with 256 additions and 522 deletions

View file

@ -44,7 +44,16 @@
#endif
static int selection_to_val(const struct settings_list *setting, int selection);
int option_value_as_int(const struct settings_list *setting)
{
int type = (setting->flags & F_T_MASK);
int temp = 0;
if (type == F_T_BOOL)
temp = *(bool*)setting->setting?1:0;
else if (type == F_T_UINT || type == F_T_INT)
temp = *(int*)setting->setting;
return temp;
}
static const char *unit_strings[] =
{
[UNIT_INT] = "", [UNIT_MS] = "ms",
@ -214,7 +223,8 @@ static int option_talk(int selected_item, void * data)
return 0;
}
#ifdef HAVE_QUICKSCREEN /* only the quickscreen uses this so far */
#if defined(HAVE_QUICKSCREEN) || defined(HAVE_RECORDING)
/* only the quickscreen and recording trigger needs this */
void option_select_next_val(const struct settings_list *setting,
bool previous, bool apply)
{