summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/jpeg.c4
-rw-r--r--apps/plugins/video.c4
2 files changed, 3 insertions, 5 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index ed21222653..312fd82ce6 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -1607,8 +1607,8 @@ int wait_for_button(void)
1607void cb_progess(int current, int total) 1607void cb_progess(int current, int total)
1608{ 1608{
1609 rb->yield(); /* be nice to the other threads */ 1609 rb->yield(); /* be nice to the other threads */
1610 rb->progressbar(0, LCD_HEIGHT-8, LCD_WIDTH, 8, 1610 rb->scrollbar(0, LCD_HEIGHT-8, LCD_WIDTH, 8, 0, total,
1611 current*100/total, 0 /*Grow_Right*/); 1611 current, HORIZONTAL);
1612 rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8); 1612 rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8);
1613} 1613}
1614 1614
diff --git a/apps/plugins/video.c b/apps/plugins/video.c
index 27bb736813..eec600b90f 100644
--- a/apps/plugins/video.c
+++ b/apps/plugins/video.c
@@ -225,7 +225,6 @@ void DrawPosition(int pos, int total)
225{ 225{
226 int w,h; 226 int w,h;
227 int sec; // estimated seconds 227 int sec; // estimated seconds
228 int percent;
229 228
230 229
231 /* print the estimated position */ 230 /* print the estimated position */
@@ -239,8 +238,7 @@ void DrawPosition(int pos, int total)
239 /* draw a slider over the rest of the line */ 238 /* draw a slider over the rest of the line */
240 rb->lcd_getstringsize(gPrint, &w, &h); 239 rb->lcd_getstringsize(gPrint, &w, &h);
241 w++; 240 w++;
242 percent = pos/(total/100); 241 rb->scrollbar(w, LCD_HEIGHT-7, LCD_WIDTH-w, 7, 0, total, pos, HORIZONTAL);
243 rb->slidebar(w, LCD_HEIGHT-7, LCD_WIDTH-w, 7, percent, Grow_Right);
244 242
245 if (gPlay.state == paused) // we have to draw ourselves 243 if (gPlay.state == paused) // we have to draw ourselves
246 rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8); 244 rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8);