Fix int settings being backwards on the player

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15116 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-10-15 07:57:11 +00:00
parent 93434b4f75
commit 887ff33f2e
2 changed files with 9 additions and 1 deletions

View file

@ -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)
{