summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-23 15:06:11 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-23 15:06:11 +0000
commit595a828e0d4234ca2bdb4222e609548f79a749bb (patch)
treecddee67ba31ad9d4a61d78db304aeef38fd36b98
parent6bfce3bf63293ed3c4c5a5bf37af96ffa2c51258 (diff)
downloadrockbox-595a828e0d4234ca2bdb4222e609548f79a749bb.zip
rockbox-595a828e0d4234ca2bdb4222e609548f79a749bb.tar.gz
rockbox-595a828e0d4234ca2bdb4222e609548f79a749bb.tar.bz2
rockbox-595a828e0d4234ca2bdb4222e609548f79a749bb.tar.xz
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
-rw-r--r--apps/onplay.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 3052f8d..f9b59e5 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -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();
}
}