summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_parser.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-01-13 06:48:39 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-01-13 06:48:39 +0000
commit261c56ba59235c2da2aa644fbea0b1fa492bd1c6 (patch)
treecdf37e93496f9dc3aaf71f45537ff3d5371c074f /apps/gui/skin_engine/skin_parser.c
parentc8535f27d140a2030cedf695a66595aae5b95c27 (diff)
downloadrockbox-261c56ba59235c2da2aa644fbea0b1fa492bd1c6.tar.gz
rockbox-261c56ba59235c2da2aa644fbea0b1fa492bd1c6.zip
FS#11867 - Add 2 new tags to allow skins to display themed peakmeters
%pL for the left channel, %pR for the right channel... usable as a value, conditional or bar (exactly the same as %pv/%bl/etc) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29043 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r--apps/gui/skin_engine/skin_parser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index f292ff3946..5a90873d86 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -744,6 +744,10 @@ static int parse_progressbar_tag(struct skin_element* element,
744 token->type = SKIN_TOKEN_BATTERY_PERCENTBAR; 744 token->type = SKIN_TOKEN_BATTERY_PERCENTBAR;
745 else if (token->type == SKIN_TOKEN_TUNER_RSSI) 745 else if (token->type == SKIN_TOKEN_TUNER_RSSI)
746 token->type = SKIN_TOKEN_TUNER_RSSI_BAR; 746 token->type = SKIN_TOKEN_TUNER_RSSI_BAR;
747 else if (token->type == SKIN_TOKEN_PEAKMETER_LEFT)
748 token->type = SKIN_TOKEN_PEAKMETER_LEFTBAR;
749 else if (token->type == SKIN_TOKEN_PEAKMETER_RIGHT)
750 token->type = SKIN_TOKEN_PEAKMETER_RIGHTBAR;
747 pb->type = token->type; 751 pb->type = token->type;
748 752
749 return 0; 753 return 0;
@@ -1410,6 +1414,8 @@ static int skin_element_callback(struct skin_element* element, void* data)
1410 case SKIN_TOKEN_VOLUME: 1414 case SKIN_TOKEN_VOLUME:
1411 case SKIN_TOKEN_BATTERY_PERCENT: 1415 case SKIN_TOKEN_BATTERY_PERCENT:
1412 case SKIN_TOKEN_PLAYER_PROGRESSBAR: 1416 case SKIN_TOKEN_PLAYER_PROGRESSBAR:
1417 case SKIN_TOKEN_PEAKMETER_LEFT:
1418 case SKIN_TOKEN_PEAKMETER_RIGHT:
1413#ifdef HAVE_RADIO_RSSI 1419#ifdef HAVE_RADIO_RSSI
1414 case SKIN_TOKEN_TUNER_RSSI: 1420 case SKIN_TOKEN_TUNER_RSSI:
1415#endif 1421#endif