Fix %Sp expansion in wps
commit608b7ed5f08d2a105ac0ef7994c38ad417fc3d60
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Thu, 15 Oct 2009 22:22:07 +0000 (15 22:22 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Thu, 15 Oct 2009 22:22:07 +0000 (15 22:22 +0000)
treeacf6ef71b9af53c8fa36bd162bb2d516ceacfb8c
parentfa9dda51530843dd26b933a9b584777af9cb6c9d
Fix %Sp expansion in wps

The value returned from sound_get_pitch() was shown assuming that 100%
corresponds to 1000 by skin_tokens.c::get_token_value().  The value
actually is 100*PITCH_SPEED_PRECISION.

Steal the way the callchain from gui_syncpitchscreen_run() to
pitchscreen_draw() in apps/gui/pitchscreen.c formats the value and use it
here for consistency.

Flyspray: FS#10673
Author: Junio C Hamano

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23199 a1c6a512-1295-4272-9138-f99709370657
apps/gui/skin_engine/skin_tokens.c
docs/CREDITS