Fix FS#7441: Volume wasn't mapped correctly to the enum cases when using the %?pv WPS tag.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13967 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bc678878c9
commit
34a6c4748c
1 changed files with 2 additions and 3 deletions
|
@ -842,9 +842,8 @@ static char *get_token_value(struct gui_wps *gwps,
|
|||
else
|
||||
{
|
||||
*intval = (limit - 3) * (global_settings.volume
|
||||
- sound_min(SOUND_VOLUME))
|
||||
/ (sound_max(SOUND_VOLUME)
|
||||
- sound_min(SOUND_VOLUME)) + 2;
|
||||
- sound_min(SOUND_VOLUME) - 1)
|
||||
/ (-1 - sound_min(SOUND_VOLUME)) + 2;
|
||||
}
|
||||
}
|
||||
return buf;
|
||||
|
|
Loading…
Reference in a new issue