diff options
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r-- | apps/gui/gwps-common.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index c0923a9ab5..dd6ac02d85 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -355,18 +355,8 @@ bool gui_wps_update(struct gui_wps *gwps) | |||
355 | { | 355 | { |
356 | struct mp3entry *id3 = gwps->state->id3; | 356 | struct mp3entry *id3 = gwps->state->id3; |
357 | bool retval; | 357 | bool retval; |
358 | if (cuesheet_is_enabled() && id3->cuesheet_type | 358 | gwps->state->do_full_update = gwps->state->do_full_update || |
359 | && (id3->elapsed < curr_cue->curr_track->offset | 359 | cuesheet_subtrack_changed(id3); |
360 | || (curr_cue->curr_track_idx < curr_cue->track_count - 1 | ||
361 | && id3->elapsed >= (curr_cue->curr_track+1)->offset))) | ||
362 | { | ||
363 | /* We've changed tracks within the cuesheet : | ||
364 | we need to update the ID3 info and refresh the WPS */ | ||
365 | gwps->state->do_full_update = true; | ||
366 | cue_find_current_track(curr_cue, id3->elapsed); | ||
367 | cue_spoof_id3(curr_cue, id3); | ||
368 | } | ||
369 | |||
370 | retval = gui_wps_redraw(gwps, 0, | 360 | retval = gui_wps_redraw(gwps, 0, |
371 | gwps->state->do_full_update ? | 361 | gwps->state->do_full_update ? |
372 | WPS_REFRESH_ALL : WPS_REFRESH_NON_STATIC); | 362 | WPS_REFRESH_ALL : WPS_REFRESH_NON_STATIC); |
@@ -421,7 +411,7 @@ static void draw_progressbar(struct gui_wps *gwps, | |||
421 | pb->x, pb->x + pb->width, y, pb->height); | 411 | pb->x, pb->x + pb->width, y, pb->height); |
422 | #endif | 412 | #endif |
423 | 413 | ||
424 | if ( cuesheet_is_enabled() && state->id3->cuesheet_type ) | 414 | if (state->id3->cuesheet) |
425 | cue_draw_markers(display, state->id3->length, | 415 | cue_draw_markers(display, state->id3->length, |
426 | pb->x, pb->x + pb->width, y+1, pb->height-2); | 416 | pb->x, pb->x + pb->width, y+1, pb->height-2); |
427 | } | 417 | } |