diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-11-18 11:47:42 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-11-18 11:47:42 +0000 |
commit | 1ce7ba4931c64a7ae6a95981e838db97d7e05699 (patch) | |
tree | 0bb3de85e23bb64951f3acbd176a20301f7efb30 /apps/gui/skin_engine/skin_parser.c | |
parent | 62b8efe6741b61ef10d3c7b98dd0d3416b7fce11 (diff) | |
download | rockbox-1ce7ba4931c64a7ae6a95981e838db97d7e05699.tar.gz rockbox-1ce7ba4931c64a7ae6a95981e838db97d7e05699.zip |
Make the %tr (radio RSSI) tag work as a bar tag or as a conditional.
As a conditional it scales its value to the number of options you give it (like volume)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28613 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index c94ef4e5b5..818edfbd07 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -742,6 +742,8 @@ static int parse_progressbar_tag(struct skin_element* element, token->type = SKIN_TOKEN_VOLUMEBAR; else if (token->type == SKIN_TOKEN_BATTERY_PERCENT) token->type = SKIN_TOKEN_BATTERY_PERCENTBAR; + else if (token->type == SKIN_TOKEN_TUNER_RSSI) + token->type = SKIN_TOKEN_TUNER_RSSI_BAR; pb->type = token->type; return 0; @@ -1408,6 +1410,9 @@ static int skin_element_callback(struct skin_element* element, void* data) case SKIN_TOKEN_VOLUME: case SKIN_TOKEN_BATTERY_PERCENT: case SKIN_TOKEN_PLAYER_PROGRESSBAR: +#ifdef HAVE_RADIO_RSSI + case SKIN_TOKEN_TUNER_RSSI: +#endif function = parse_progressbar_tag; break; case SKIN_TOKEN_SUBLINE_TIMEOUT: |