From 595a828e0d4234ca2bdb4222e609548f79a749bb Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 23 Aug 2009 15:06:11 +0000 Subject: 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 --- apps/onplay.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/onplay.c') diff --git a/apps/onplay.c b/apps/onplay.c index 3052f8dfdb..f9b59e5206 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(); } } -- cgit v1.2.3