summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-05-28 10:41:07 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-05-28 10:41:07 +0000
commitcdf18bf388b5469800c65e4d6fe77cba27b2b8e3 (patch)
treef4b338eb5c582d73a59fd05f51cc7f596366841e
parentadf2e4c9a012fda200431c92cb2c1707dbe2f0a3 (diff)
downloadrockbox-cdf18bf388b5469800c65e4d6fe77cba27b2b8e3.tar.gz
rockbox-cdf18bf388b5469800c65e4d6fe77cba27b2b8e3.tar.bz2
rockbox-cdf18bf388b5469800c65e4d6fe77cba27b2b8e3.zip
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
-rw-r--r--apps/gui/option_select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index c3c2cb3c63..023f9b47e5 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -246,7 +246,7 @@ void option_select_next_val(const struct settings_list *setting,
val = info->max;
}
if (apply && info->option_callback)
- info->option_callback(*(int*)value);
+ info->option_callback(val);
}
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;
}
if (apply && info->option_callback)
- info->option_callback(*(int*)value);
+ info->option_callback(val);
}
else if ((setting->flags & F_TABLE_SETTING) == F_TABLE_SETTING)
{