fix the freq bar after music plays
authorjdgordon <jdgordon@a1c6a512-1295-4272-9138-f99709370657>
Thu, 13 May 2010 06:59:16 +0000 (13 06:59 +0000)
committerjdgordon <jdgordon@a1c6a512-1295-4272-9138-f99709370657>
Thu, 13 May 2010 06:59:16 +0000 (13 06:59 +0000)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25983 a1c6a512-1295-4272-9138-f99709370657

apps/gui/skin_engine/skin_display.c

index e91d7f2..f7bc14d 100644 (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;