Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.

My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.


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;
 }