fix the int settings on the Archos Player (left is now decrease like it should be)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11314 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
877cafa33d
commit
4a4c67f660
1 changed files with 8 additions and 0 deletions
|
@ -2051,10 +2051,18 @@ bool set_int(const unsigned char* string,
|
|||
int max,
|
||||
void (*formatter)(char*, int, int, const char*) )
|
||||
{
|
||||
#if CONFIG_KEYPAD != PLAYER_PAD
|
||||
struct value_setting_data data = {
|
||||
INT,max, step, voice_unit,unit,formatter,NULL };
|
||||
return do_set_setting(string,variable,(max-min)/step + 1,
|
||||
(max-*variable)/step, &data,function);
|
||||
#else
|
||||
int count = (max-min)/step + 1;
|
||||
struct value_setting_data data = {
|
||||
INT,min, -step, voice_unit,unit,formatter,NULL };
|
||||
return do_set_setting(string,variable,count,
|
||||
count - ((max-*variable)/step), &data,function);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* NOTE: the 'type' parameter specifies the actual type of the variable
|
||||
|
|
Loading…
Reference in a new issue