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:
Nicolas Pennequin 2007-07-23 17:11:13 +00:00
parent bc678878c9
commit 34a6c4748c

View file

@ -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;