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, | |||
742 | token->type = SKIN_TOKEN_VOLUMEBAR; | 742 | token->type = SKIN_TOKEN_VOLUMEBAR; |
743 | else if (token->type == SKIN_TOKEN_BATTERY_PERCENT) | 743 | else if (token->type == SKIN_TOKEN_BATTERY_PERCENT) |
744 | token->type = SKIN_TOKEN_BATTERY_PERCENTBAR; | 744 | token->type = SKIN_TOKEN_BATTERY_PERCENTBAR; |
745 | else if (token->type == SKIN_TOKEN_TUNER_RSSI) | ||
746 | token->type = SKIN_TOKEN_TUNER_RSSI_BAR; | ||
745 | pb->type = token->type; | 747 | pb->type = token->type; |
746 | 748 | ||
747 | return 0; | 749 | return 0; |
@@ -1408,6 +1410,9 @@ static int skin_element_callback(struct skin_element* element, void* data) | |||
1408 | case SKIN_TOKEN_VOLUME: | 1410 | case SKIN_TOKEN_VOLUME: |
1409 | case SKIN_TOKEN_BATTERY_PERCENT: | 1411 | case SKIN_TOKEN_BATTERY_PERCENT: |
1410 | case SKIN_TOKEN_PLAYER_PROGRESSBAR: | 1412 | case SKIN_TOKEN_PLAYER_PROGRESSBAR: |
1413 | #ifdef HAVE_RADIO_RSSI | ||
1414 | case SKIN_TOKEN_TUNER_RSSI: | ||
1415 | #endif | ||
1411 | function = parse_progressbar_tag; | 1416 | function = parse_progressbar_tag; |
1412 | break; | 1417 | break; |
1413 | case SKIN_TOKEN_SUBLINE_TIMEOUT: | 1418 | case SKIN_TOKEN_SUBLINE_TIMEOUT: |