diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-08-23 15:06:11 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-23 15:06:11 +0000 |
commit | 595a828e0d4234ca2bdb4222e609548f79a749bb (patch) | |
tree | cddee67ba31ad9d4a61d78db304aeef38fd36b98 /apps/onplay.c | |
parent | 6bfce3bf63293ed3c4c5a5bf37af96ffa2c51258 (diff) | |
download | rockbox-595a828e0d4234ca2bdb4222e609548f79a749bb.tar.gz rockbox-595a828e0d4234ca2bdb4222e609548f79a749bb.zip |
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
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 @@ | |||
64 | #include "cuesheet.h" | 64 | #include "cuesheet.h" |
65 | #include "backdrop.h" | 65 | #include "backdrop.h" |
66 | #include "pitchscreen.h" | 66 | #include "pitchscreen.h" |
67 | #include "viewport.h" | ||
67 | 68 | ||
68 | static int context; | 69 | static int context; |
69 | static char* selected_file = NULL; | 70 | static char* selected_file = NULL; |
@@ -661,9 +662,10 @@ static void draw_slider(void) | |||
661 | int i; | 662 | int i; |
662 | FOR_NB_SCREENS(i) | 663 | FOR_NB_SCREENS(i) |
663 | { | 664 | { |
664 | show_busy_slider(&screens[i], 1, | 665 | struct viewport *vp = &(viewport_get_current_vp())[i]; |
665 | LCD_HEIGHT-2*screens[i].getcharheight(), | 666 | show_busy_slider(&screens[i], vp->x, |
666 | LCD_WIDTH-2, 2*screens[i].getcharheight()-1); | 667 | (vp->y+vp->height)-2*screens[i].getcharheight(), |
668 | vp->width, 2*screens[i].getcharheight()-1); | ||
667 | screens[i].update(); | 669 | screens[i].update(); |
668 | } | 670 | } |
669 | } | 671 | } |