forked from len0rd/rockbox
Bound the progress slider into the currently used viewport (which should be the ui viewport at virtually any time).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22471 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6bfce3bf63
commit
595a828e0d
1 changed files with 5 additions and 3 deletions
|
|
@ -64,6 +64,7 @@
|
|||
#include "cuesheet.h"
|
||||
#include "backdrop.h"
|
||||
#include "pitchscreen.h"
|
||||
#include "viewport.h"
|
||||
|
||||
static int context;
|
||||
static char* selected_file = NULL;
|
||||
|
|
@ -661,9 +662,10 @@ static void draw_slider(void)
|
|||
int i;
|
||||
FOR_NB_SCREENS(i)
|
||||
{
|
||||
show_busy_slider(&screens[i], 1,
|
||||
LCD_HEIGHT-2*screens[i].getcharheight(),
|
||||
LCD_WIDTH-2, 2*screens[i].getcharheight()-1);
|
||||
struct viewport *vp = &(viewport_get_current_vp())[i];
|
||||
show_busy_slider(&screens[i], vp->x,
|
||||
(vp->y+vp->height)-2*screens[i].getcharheight(),
|
||||
vp->width, 2*screens[i].getcharheight()-1);
|
||||
screens[i].update();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue