summaryrefslogtreecommitdiffstats
path: root/apps/gui
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2009-06-20 10:36:07 +0000
committerSteve Bavin <pondlife@pondlife.me>2009-06-20 10:36:07 +0000
commitcbbf032c1b9f3e7369725745944d7f5d14abd3e6 (patch)
treebdea7e6a3083898e8d6d329c8c71fef14f4fc915 /apps/gui
parentc88ee0ba077a0d281cbc18131b2d5d28a23afbc9 (diff)
downloadrockbox-cbbf032c1b9f3e7369725745944d7f5d14abd3e6.tar.gz
rockbox-cbbf032c1b9f3e7369725745944d7f5d14abd3e6.zip
Display speed as relative to real-time, not timestretch amount.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21375 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/pitchscreen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/gui/pitchscreen.c b/apps/gui/pitchscreen.c
index 5b77294ca5..cd970d795d 100644
--- a/apps/gui/pitchscreen.c
+++ b/apps/gui/pitchscreen.c
@@ -113,7 +113,7 @@ static void pitchscreen_draw(struct screen *display, int max_lines,
struct viewport pitch_viewports[PITCH_ITEM_COUNT],
int pitch
#if CONFIG_CODEC == SWCODEC
- ,int speed
+ ,int speedxpitch
#endif
)
{
@@ -195,7 +195,8 @@ static void pitchscreen_draw(struct screen *display, int max_lines,
else
{
/* "Speed:XXX%" */
- snprintf(buf, sizeof(buf), "%s:%d%%", str(LANG_SPEED), speed);
+ snprintf(buf, sizeof(buf), "%s:%d%%", str(LANG_SPEED),
+ speedxpitch / 1000);
}
#endif
display->getstringsize(buf, &w, &h);
@@ -348,7 +349,7 @@ int gui_syncpitchscreen_run(void)
pitchscreen_draw(&screens[i], max_lines[i],
pitch_viewports[i], pitch
#if CONFIG_CODEC == SWCODEC
- , speed
+ , maintain_speed_pitch
#endif
);
pitch_delta = 0;