summaryrefslogtreecommitdiff
path: root/apps/plugins/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/video.c')
-rw-r--r--apps/plugins/video.c4
1 files changed, 1 insertions, 3 deletions
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);