From 887ff33f2e288dc449eb9a69d4bbeb801f02d790 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 15 Oct 2007 07:57:11 +0000 Subject: Fix int settings being backwards on the player git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15116 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/option_select.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/gui/option_select.c') diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index 0414b70..7550b8b 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c @@ -256,9 +256,15 @@ static int selection_to_val(struct settings_list *setting, int selection) else if ((setting->flags & F_INT_SETTING) == F_INT_SETTING) { struct int_setting *info = setting->int_setting; +#if CONFIG_KEYPAD != PLAYER_PAD min = info->min; max = info->max; step = info->step; +#else + max = info->min; + min = info->max; + step = -info->step; +#endif } if (setting->flags & F_FLIPLIST) { -- cgit v1.1