diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-10-15 07:57:11 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-10-15 07:57:11 +0000 |
| commit | 887ff33f2e288dc449eb9a69d4bbeb801f02d790 (patch) | |
| tree | 008b186e2e1454de6ce039d2ce185e1e5247161b /apps/gui/option_select.c | |
| parent | 93434b4f751969e5c27b738c6d5ce52d46bc8285 (diff) | |
| download | rockbox-887ff33f2e288dc449eb9a69d4bbeb801f02d790.zip rockbox-887ff33f2e288dc449eb9a69d4bbeb801f02d790.tar.gz rockbox-887ff33f2e288dc449eb9a69d4bbeb801f02d790.tar.bz2 rockbox-887ff33f2e288dc449eb9a69d4bbeb801f02d790.tar.xz | |
Fix int settings being backwards on the player
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15116 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/option_select.c')
| -rw-r--r-- | apps/gui/option_select.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |