summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-03-13 10:55:47 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2022-03-13 10:55:47 -0400
commit77e4dd81f5abedda802b8b6e895849995907b484 (patch)
tree750656ede0dac091aa1512ccd81660ec40ddbb58 /apps/gui/skin_engine
parenteb86ee296a40249c33d1969087f98108735beaa9 (diff)
downloadrockbox-77e4dd81f5abedda802b8b6e895849995907b484.tar.gz
rockbox-77e4dd81f5abedda802b8b6e895849995907b484.zip
option_string clean-up and consolidate with metadata_common
Change-Id: I2649f6af37bd871fb8f181ae2f716ff0bcf1f65c
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r--apps/gui/skin_engine/skin_parser.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index bb6ec7c421..a9b1ef4706 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -601,7 +601,7 @@ static int parse_viewporttextstyle(struct skin_element *element,
601 *line = (struct line_desc)LINE_DESC_DEFINIT; 601 *line = (struct line_desc)LINE_DESC_DEFINIT;
602 unsigned colour; 602 unsigned colour;
603 603
604 const char *vp_options[] = { "invert", "color", "colour", 604 static const char *vp_options[] = { "invert", "color", "colour",
605 "clear", "gradient", NULL}; 605 "clear", "gradient", NULL};
606 606
607 int vp_op = string_option(mode, vp_options, false); 607 int vp_op = string_option(mode, vp_options, false);
@@ -1054,15 +1054,11 @@ static int parse_progressbar_tag(struct skin_element* element,
1054 eBACKDROP, eVERTICAL, eHORIZONTAL, eNOTOUCH, eSETTING 1054 eBACKDROP, eVERTICAL, eHORIZONTAL, eNOTOUCH, eSETTING
1055 }; 1055 };
1056 1056
1057 const char *pb_options[] = {"invert", "nofill", "noborder, nobar", "slider", 1057 static const char *pb_options[] = {"invert", "nofill", "noborder, nobar", "slider",
1058 "image", "backdrop", "vertical", "horizontal", 1058 "image", "backdrop", "vertical", "horizontal",
1059 "notouch", "setting", NULL}; 1059 "notouch", "setting", NULL};
1060
1061 int pb_op; 1060 int pb_op;
1062 1061
1063
1064
1065
1066 while (curr_param < element->params_count) 1062 while (curr_param < element->params_count)
1067 { 1063 {
1068 char* text; 1064 char* text;
@@ -1402,7 +1398,7 @@ static int parse_skinvar( struct skin_element *element,
1402 return 0; 1398 return 0;
1403 case SKIN_TOKEN_VAR_SET: 1399 case SKIN_TOKEN_VAR_SET:
1404 { 1400 {
1405 const char *sv_options[] = {"touch", "set", "inc", "dec", NULL}; 1401 static const char *sv_options[] = {"touch", "set", "inc", "dec", NULL};
1406 1402
1407 struct skin_var_changer *data = skin_buffer_alloc(sizeof(*data)); 1403 struct skin_var_changer *data = skin_buffer_alloc(sizeof(*data));
1408 if (!data) 1404 if (!data)
@@ -1706,7 +1702,7 @@ static int parse_touchregion(struct skin_element *element,
1706 if (region->action == ACTION_NONE) 1702 if (region->action == ACTION_NONE)
1707 return WPS_ERROR_INVALID_PARAM; 1703 return WPS_ERROR_INVALID_PARAM;
1708 } 1704 }
1709 const char *pm_options[] = {"allow_while_locked", "reverse_bar", 1705 static const char *pm_options[] = {"allow_while_locked", "reverse_bar",
1710 "repeat_press", "long_press", NULL}; 1706 "repeat_press", "long_press", NULL};
1711 int pm_op; 1707 int pm_op;
1712 1708