From adc9cb1adc667997808b0abdbf8749fcbdbbf461 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 21 Jun 2010 12:43:08 +0000 Subject: Allow the progressbar and volume touch regions to be reverse by prepending them with ! (so full is the left/top instead of right/bottom) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27013 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_parser.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/gui/skin_engine/skin_parser.c') diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index bbcb3fe8f7..b9254d9dbd 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -1578,12 +1578,19 @@ static int parse_touchregion(const char *wps_bufptr, region->height = h; region->wvp = curr_vp; region->armed = false; + region->reverse_bar = false; end = strchr(action, ')'); if (!end || (size_t)(end-action+1) > sizeof temp) return WPS_ERROR_INVALID_PARAM; strlcpy(temp, action, end-action+1); action = temp; + + if (*action == '!') + { + region->reverse_bar = true; + action++; + } if(!strcmp(pb_string, action)) region->type = WPS_TOUCHREGION_SCROLLBAR; -- cgit v1.2.3