diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 13:14:44 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 13:14:44 +0000 |
commit | 244106176447effe0330ef194ad93ccaadf589ff (patch) | |
tree | 0d50f243af7c625a1af4e425cc909de66182dd8a /apps/plugins | |
parent | e7bb8c04287ec8baf6f89dd4f169b00ccb7d7171 (diff) | |
download | rockbox-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')
-rw-r--r-- | apps/plugins/jpeg.c | 4 | ||||
-rw-r--r-- | apps/plugins/video.c | 4 |
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) | |||
1607 | void cb_progess(int current, int total) | 1607 | void 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); |