summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_display.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-10-12 12:46:57 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-10-12 12:46:57 +0000
commit9acd242839b83aa64c6633461bbc523f50b070f4 (patch)
tree045cdbc51c719f42c3ddd1a6b33c699dcd4dfde5 /apps/gui/skin_engine/skin_display.c
parent3eb5826c8a289d2ff2af246388e17d4aa6483da4 (diff)
downloadrockbox-9acd242839b83aa64c6633461bbc523f50b070f4.tar.gz
rockbox-9acd242839b83aa64c6633461bbc523f50b070f4.zip
skin bar tag: Load an image from a label or filename. i.e %xl(bar_image, pb.bmp,0,0) %pb(0,0,10,10,bar_image) or %pb(0,0,10,10, pb.bmp) both are acceptable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28249 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r--apps/gui/skin_engine/skin_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index 1418d91b57..78db4eb371 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -214,8 +214,8 @@ void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb)
214 } 214 }
215 if (!pb->nobar) 215 if (!pb->nobar)
216 { 216 {
217 if (pb->have_bitmap_pb) 217 if (pb->image)
218 gui_bitmap_scrollbar_draw(display, &pb->bm, 218 gui_bitmap_scrollbar_draw(display, &pb->image->bm,
219 x, y, width, height, 219 x, y, width, height,
220 length, 0, end, flags); 220 length, 0, end, flags);
221 else 221 else