1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Steve Bavin 2009-06-20 10:36:07 +00:00
parent c88ee0ba07
commit cbbf032c1b

View file

@ -113,7 +113,7 @@ static void pitchscreen_draw(struct screen *display, int max_lines,
struct viewport pitch_viewports[PITCH_ITEM_COUNT], struct viewport pitch_viewports[PITCH_ITEM_COUNT],
int pitch int pitch
#if CONFIG_CODEC == SWCODEC #if CONFIG_CODEC == SWCODEC
,int speed ,int speedxpitch
#endif #endif
) )
{ {
@ -195,7 +195,8 @@ static void pitchscreen_draw(struct screen *display, int max_lines,
else else
{ {
/* "Speed:XXX%" */ /* "Speed:XXX%" */
snprintf(buf, sizeof(buf), "%s:%d%%", str(LANG_SPEED), speed); snprintf(buf, sizeof(buf), "%s:%d%%", str(LANG_SPEED),
speedxpitch / 1000);
} }
#endif #endif
display->getstringsize(buf, &w, &h); display->getstringsize(buf, &w, &h);
@ -348,7 +349,7 @@ int gui_syncpitchscreen_run(void)
pitchscreen_draw(&screens[i], max_lines[i], pitchscreen_draw(&screens[i], max_lines[i],
pitch_viewports[i], pitch pitch_viewports[i], pitch
#if CONFIG_CODEC == SWCODEC #if CONFIG_CODEC == SWCODEC
, speed , maintain_speed_pitch
#endif #endif
); );
pitch_delta = 0; pitch_delta = 0;