forked from len0rd/rockbox
scrollbar() parameters were swapped
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4859 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
209210e265
commit
6b559b1f97
2 changed files with 2 additions and 2 deletions
|
@ -1607,7 +1607,7 @@ int wait_for_button(void)
|
||||||
void cb_progess(int current, int total)
|
void cb_progess(int current, int total)
|
||||||
{
|
{
|
||||||
rb->yield(); /* be nice to the other threads */
|
rb->yield(); /* be nice to the other threads */
|
||||||
rb->scrollbar(0, LCD_HEIGHT-8, LCD_WIDTH, 8, 0, total,
|
rb->scrollbar(0, LCD_HEIGHT-8, LCD_WIDTH, 8, total, 0,
|
||||||
current, HORIZONTAL);
|
current, HORIZONTAL);
|
||||||
rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8);
|
rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8);
|
||||||
}
|
}
|
||||||
|
|
|
@ -238,7 +238,7 @@ void DrawPosition(int pos, int total)
|
||||||
/* draw a slider over the rest of the line */
|
/* draw a slider over the rest of the line */
|
||||||
rb->lcd_getstringsize(gPrint, &w, &h);
|
rb->lcd_getstringsize(gPrint, &w, &h);
|
||||||
w++;
|
w++;
|
||||||
rb->scrollbar(w, LCD_HEIGHT-7, LCD_WIDTH-w, 7, 0, total, pos, HORIZONTAL);
|
rb->scrollbar(w, LCD_HEIGHT-7, LCD_WIDTH-w, 7, total, 0, pos, HORIZONTAL);
|
||||||
|
|
||||||
if (gPlay.state == paused) // we have to draw ourselves
|
if (gPlay.state == paused) // we have to draw ourselves
|
||||||
rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8);
|
rb->lcd_update_rect(0, LCD_HEIGHT-8, LCD_WIDTH, 8);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue