1
0
Fork 0
forked from len0rd/rockbox

fix the freq bar after music plays

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25983 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-05-13 06:59:16 +00:00
parent 3fbe4d275e
commit 182d13e3ab

View file

@ -158,11 +158,6 @@ static void draw_progressbar(struct gui_wps *gwps,
length = 100;
elapsed = battery_level();
}
else if (id3 && id3->length)
{
length = id3->length;
elapsed = id3->elapsed + state->ff_rewind_count;
}
#if CONFIG_TUNER
else if (in_radio_screen() || (get_radio_status() != FMRADIO_OFF))
{
@ -171,6 +166,11 @@ static void draw_progressbar(struct gui_wps *gwps,
length = fm_region_data[global_settings.fm_region].freq_max - min;
}
#endif
else if (id3 && id3->length)
{
length = id3->length;
elapsed = id3->elapsed + state->ff_rewind_count;
}
else
{
length = 1;