diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-07-24 01:13:30 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-07-24 01:13:30 +0000 |
| commit | eb0061411d6fa08ab540107cdbd2906e18e516d7 (patch) | |
| tree | bf605b7bb1ecf9717b5e1a1b1fc1ae157ba04db4 /apps/gui | |
| parent | bd9156a4ada3eb036192f9f82421f38c107f25c9 (diff) | |
| download | rockbox-eb0061411d6fa08ab540107cdbd2906e18e516d7.zip rockbox-eb0061411d6fa08ab540107cdbd2906e18e516d7.tar.gz rockbox-eb0061411d6fa08ab540107cdbd2906e18e516d7.tar.bz2 rockbox-eb0061411d6fa08ab540107cdbd2906e18e516d7.tar.xz | |
more cuesheet cleanup. pass the cuesheet into cue functions so they dont have to call audio_current_track()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22020 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
| -rw-r--r-- | apps/gui/gwps-common.c | 2 | ||||
| -rw-r--r-- | apps/gui/gwps.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index da70f0e..721682f 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -412,7 +412,7 @@ static void draw_progressbar(struct gui_wps *gwps, #endif if (state->id3->cuesheet) - cue_draw_markers(display, state->id3->length, + cue_draw_markers(display, state->id3->cuesheet, state->id3->length, pb->x, pb->x + pb->width, y+1, pb->height-2); } diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 154864a..10c2a68 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -151,7 +151,7 @@ static void prev_track(unsigned long skip_thresh) { if (wps_state.id3->cuesheet) { - curr_cuesheet_skip(-1, wps_state.id3->elapsed); + curr_cuesheet_skip(wps_state.id3->cuesheet, -1, wps_state.id3->elapsed); return; } @@ -176,7 +176,7 @@ static void next_track(void) /* take care of if we're playing a cuesheet */ if (wps_state.id3->cuesheet) { - if (curr_cuesheet_skip(1, wps_state.id3->elapsed)) + if (curr_cuesheet_skip(wps_state.id3->cuesheet, 1, wps_state.id3->elapsed)) { /* if the result was false, then we really want to skip to the next track */ |