From 244106176447effe0330ef194ad93ccaadf589ff Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 8 Jul 2004 13:14:44 +0000 Subject: Removed progressbar() and slidebar() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4854 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/jpeg.c | 4 ++-- apps/plugins/video.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'apps/plugins') 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) void cb_progess(int current, int total) { rb->yield(); /* be nice to the other threads */ - rb->progressbar(0, LCD_HEIGHT-8, LCD_WIDTH, 8, - current*100/total, 0 /*Grow_Right*/); + rb->scrollbar(0, LCD_HEIGHT-8, LCD_WIDTH, 8, 0, total, + current, HORIZONTAL); rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8); } 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) { int w,h; int sec; // estimated seconds - int percent; /* print the estimated position */ @@ -239,8 +238,7 @@ void DrawPosition(int pos, int total) /* draw a slider over the rest of the line */ rb->lcd_getstringsize(gPrint, &w, &h); w++; - percent = pos/(total/100); - rb->slidebar(w, LCD_HEIGHT-7, LCD_WIDTH-w, 7, percent, Grow_Right); + rb->scrollbar(w, LCD_HEIGHT-7, LCD_WIDTH-w, 7, 0, total, pos, HORIZONTAL); if (gPlay.state == paused) // we have to draw ourselves rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8); -- cgit v1.2.3