summaryrefslogtreecommitdiff
path: root/apps/plugins/video.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-08 13:14:44 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-08 13:14:44 +0000
commit244106176447effe0330ef194ad93ccaadf589ff (patch)
tree0d50f243af7c625a1af4e425cc909de66182dd8a /apps/plugins/video.c
parente7bb8c04287ec8baf6f89dd4f169b00ccb7d7171 (diff)
downloadrockbox-244106176447effe0330ef194ad93ccaadf589ff.tar.gz
rockbox-244106176447effe0330ef194ad93ccaadf589ff.zip
Removed progressbar() and slidebar()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4854 a1c6a512-1295-4272-9138-f99709370657
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);