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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index df200bec5f..2d47989aa2 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -122,6 +122,10 @@ static void draw_progressbar(struct gui_wps *gwps,
122 struct progressbar *pb = wps_vp->pb; 122 struct progressbar *pb = wps_vp->pb;
123 struct mp3entry *id3 = state->id3; 123 struct mp3entry *id3 = state->id3;
124 int y = pb->y; 124 int y = pb->y;
125 int height = pb->height;
126
127 if (pb->height < 0 && !pb->have_bitmap_pb)
128 height = font_get(wps_vp->vp.font)->height;
125 129
126 if (y < 0) 130 if (y < 0)
127 { 131 {
@@ -151,19 +155,19 @@ static void draw_progressbar(struct gui_wps *gwps,
151 length ? elapsed + state->ff_rewind_count : 0, 155 length ? elapsed + state->ff_rewind_count : 0,
152 HORIZONTAL); 156 HORIZONTAL);
153 else 157 else
154 gui_scrollbar_draw(display, pb->x, y, pb->width, pb->height, 158 gui_scrollbar_draw(display, pb->x, y, pb->width, height,
155 length ? length : 1, 0, 159 length ? length : 1, 0,
156 length ? elapsed + state->ff_rewind_count : 0, 160 length ? elapsed + state->ff_rewind_count : 0,
157 HORIZONTAL); 161 HORIZONTAL);
158#ifdef AB_REPEAT_ENABLE 162#ifdef AB_REPEAT_ENABLE
159 if ( ab_repeat_mode_enabled() && length != 0 ) 163 if ( ab_repeat_mode_enabled() && length != 0 )
160 ab_draw_markers(display, length, 164 ab_draw_markers(display, length,
161 pb->x, pb->x + pb->width, y, pb->height); 165 pb->x, pb->x + pb->width, y, height);
162#endif 166#endif
163 167
164 if (id3 && id3->cuesheet) 168 if (id3 && id3->cuesheet)
165 cue_draw_markers(display, state->id3->cuesheet, length, 169 cue_draw_markers(display, state->id3->cuesheet, length,
166 pb->x, pb->x + pb->width, y+1, pb->height-2); 170 pb->x, pb->x + pb->width, y+1, height-2);
167} 171}
168bool audio_peek_track(struct mp3entry* id3, int offset); 172bool audio_peek_track(struct mp3entry* id3, int offset);
169static void draw_playlist_viewer_list(struct gui_wps *gwps, 173static void draw_playlist_viewer_list(struct gui_wps *gwps,