mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
93434b4f75
commit
887ff33f2e
2 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -374,7 +374,9 @@ static long jumpscroll_getlang(int value)
|
|||
#if defined (HAVE_SCROLLWHEEL) || \
|
||||
(CONFIG_KEYPAD == IPOD_3G_PAD) || \
|
||||
(CONFIG_KEYPAD == IPOD_4G_PAD) || \
|
||||
(CONFIG_KEYPAD == IPOD_1G2G_PAD)
|
||||
(CONFIG_KEYPAD == IPOD_1G2G_PAD) || \
|
||||
(CONFIG_KEYPAD == PLAYER_PAD) /* player doesnt have a wheel, \
|
||||
but acts the same way */
|
||||
#define FLIP_IF_WHEEL F_FLIPLIST
|
||||
#else
|
||||
#define FLIP_IF_WHEEL 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue