summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r--apps/gui/skin_engine/skin_display.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index d0e94c7041..4b1c747706 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -185,17 +185,26 @@ static void draw_progressbar(struct gui_wps *gwps,
185 gui_scrollbar_draw(display, pb->x, y, pb->width, height, 185 gui_scrollbar_draw(display, pb->x, y, pb->width, height,
186 length, 0, elapsed, HORIZONTAL); 186 length, 0, elapsed, HORIZONTAL);
187 187
188 if (pb->type == WPS_TOKEN_PROGRESSBAR && id3 && id3->length) 188 if (pb->type == WPS_TOKEN_PROGRESSBAR)
189 { 189 {
190 if (id3 && id3->length)
191 {
190#ifdef AB_REPEAT_ENABLE 192#ifdef AB_REPEAT_ENABLE
191 if (ab_repeat_mode_enabled()) 193 if (ab_repeat_mode_enabled())
192 ab_draw_markers(display, id3->length, 194 ab_draw_markers(display, id3->length,
193 pb->x, y, pb->width, height); 195 pb->x, y, pb->width, height);
194#endif 196#endif
195 197
196 if (id3->cuesheet) 198 if (id3->cuesheet)
197 cue_draw_markers(display, id3->cuesheet, id3->length, 199 cue_draw_markers(display, id3->cuesheet, id3->length,
198 pb->x, y+1, pb->width, height-2); 200 pb->x, y+1, pb->width, height-2);
201 }
202#if CONFIG_TUNER
203 else if (in_radio_screen() || (get_radio_status() != FMRADIO_OFF))
204 {
205 presets_draw_markers(display, pb->x, y, pb->width, height);
206 }
207#endif
199 } 208 }
200} 209}
201 210