1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/apps/plugins/pictureflow.c b/apps/plugins/pictureflow.c
index 148c5aa..5883b0c 100644
--- a/apps/plugins/pictureflow.c
+++ b/apps/plugins/pictureflow.c
@@ -814,7 +814,8 @@ void draw_progressbar(int step)
  */
 bool create_albumart_cache(void)
 {
-    int ret;
+    int ret, cover_count = 0;
+    long ticks = *(rb->current_tick);

     int i, slides = 0;
     struct bitmap input_bmp;
@@ -849,7 +850,7 @@ bool create_albumart_cache(void)
         if (!save_pfraw(pfraw_file, &input_bmp))
         {
             rb->splash(HZ, "Could not write bmp");
-        }
+        } else cover_count++;
         slides++;
         if ( rb->button_get(false) == PICTUREFLOW_MENU ) return false;
     }
@@ -858,6 +859,10 @@ bool create_albumart_cache(void)
         rb->splash(2*HZ, "No album art found");
         return false;
     }
+    ticks = *(rb->current_tick) - ticks;
+    rb->splashf(0,"%ld ticks to scale %d covers", ticks, cover_count);
+    while(rb->get_action(CONTEXT_MAINMENU,HZ) != ACTION_STD_OK)
+        rb->yield();
     return true;
 }