summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r--apps/gui/skin_engine/skin_parser.c7
1 files changed, 7 insertions, 0 deletions
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,
1578 region->height = h; 1578 region->height = h;
1579 region->wvp = curr_vp; 1579 region->wvp = curr_vp;
1580 region->armed = false; 1580 region->armed = false;
1581 region->reverse_bar = false;
1581 1582
1582 end = strchr(action, ')'); 1583 end = strchr(action, ')');
1583 if (!end || (size_t)(end-action+1) > sizeof temp) 1584 if (!end || (size_t)(end-action+1) > sizeof temp)
1584 return WPS_ERROR_INVALID_PARAM; 1585 return WPS_ERROR_INVALID_PARAM;
1585 strlcpy(temp, action, end-action+1); 1586 strlcpy(temp, action, end-action+1);
1586 action = temp; 1587 action = temp;
1588
1589 if (*action == '!')
1590 {
1591 region->reverse_bar = true;
1592 action++;
1593 }
1587 1594
1588 if(!strcmp(pb_string, action)) 1595 if(!strcmp(pb_string, action))
1589 region->type = WPS_TOUCHREGION_SCROLLBAR; 1596 region->type = WPS_TOUCHREGION_SCROLLBAR;