summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_display.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-12 15:11:46 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-12 15:22:29 +0100
commit3ae73433ab826c7a4f3c49b4d0a86fd9dc29a9cc (patch)
treefe285fbee6684aa0337723ac4af9280e13d8f3c9 /apps/gui/skin_engine/skin_display.c
parent6e882b43b6242e102f4514904c57abb68ad69efe (diff)
downloadrockbox-3ae73433ab826c7a4f3c49b4d0a86fd9dc29a9cc.tar.gz
rockbox-3ae73433ab826c7a4f3c49b4d0a86fd9dc29a9cc.zip
skin_engine: New param "noborder" for the bar tags.
By specifying this param the bar will not have a border/box. Instead the inner part that fills up is maximized on the bar area. Note that this only affects bars using foreground and background colors, not those constructed with images. Change-Id: Ib8dd49ecbaf9e16b96de840f5f365871b73d4fa4
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rwxr-xr-xapps/gui/skin_engine/skin_display.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index 82eaa1f553..137bced19b 100755
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -202,6 +202,11 @@ void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb)
flags |= INNER_NOFILL;
}
+ if (pb->noborder)
+ {
+ flags |= BORDER_NOFILL;
+ }
+
if (SKINOFFSETTOPTR(get_skin_buffer(gwps->data), pb->slider))
{
struct gui_img *img = SKINOFFSETTOPTR(get_skin_buffer(gwps->data), pb->slider);