forked from len0rd/rockbox
callbacks were being called with the old value.. spotted in IRC last week
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17641 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
adf2e4c9a0
commit
cdf18bf388
1 changed files with 2 additions and 2 deletions
|
@ -246,7 +246,7 @@ void option_select_next_val(const struct settings_list *setting,
|
||||||
val = info->max;
|
val = info->max;
|
||||||
}
|
}
|
||||||
if (apply && info->option_callback)
|
if (apply && info->option_callback)
|
||||||
info->option_callback(*(int*)value);
|
info->option_callback(val);
|
||||||
}
|
}
|
||||||
else if ((setting->flags & F_T_SOUND) == F_T_SOUND)
|
else if ((setting->flags & F_T_SOUND) == F_T_SOUND)
|
||||||
{
|
{
|
||||||
|
@ -284,7 +284,7 @@ void option_select_next_val(const struct settings_list *setting,
|
||||||
val = info->count-1;
|
val = info->count-1;
|
||||||
}
|
}
|
||||||
if (apply && info->option_callback)
|
if (apply && info->option_callback)
|
||||||
info->option_callback(*(int*)value);
|
info->option_callback(val);
|
||||||
}
|
}
|
||||||
else if ((setting->flags & F_TABLE_SETTING) == F_TABLE_SETTING)
|
else if ((setting->flags & F_TABLE_SETTING) == F_TABLE_SETTING)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue