summaryrefslogtreecommitdiff
path: root/apps/settings_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r--apps/settings_list.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index c03731f2b7..98dd900e3c 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -180,6 +180,10 @@
180 {.custom = (void*)default}, name, NULL, \ 180 {.custom = (void*)default}, name, NULL, \
181 {.custom_setting = (struct custom_setting[]){ \ 181 {.custom_setting = (struct custom_setting[]){ \
182 {load_from_cfg, write_to_cfg, is_change, set_default}}}} 182 {load_from_cfg, write_to_cfg, is_change, set_default}}}}
183
184#define VIEWPORT_SETTING(var,name,default) \
185 TEXT_SETTING(0,var,name,default, NULL, NULL)
186
183/* some sets of values which are used more than once, to save memory */ 187/* some sets of values which are used more than once, to save memory */
184static const char off_on[] = "off,on"; 188static const char off_on[] = "off,on";
185static const char off_on_ask[] = "off,on,ask"; 189static const char off_on_ask[] = "off,on,ask";
@@ -1539,6 +1543,13 @@ const struct settings_list settings[] = {
1539#endif 1543#endif
1540#endif 1544#endif
1541 1545
1546 /* Customizable list */
1547#ifdef HAVE_LCD_BITMAP
1548 VIEWPORT_SETTING(ui_vp_config, "ui viewport", ""),
1549#ifdef HAVE_REMOTE_LCD
1550 VIEWPORT_SETTING(remote_ui_vp_config, "remote ui viewport", ""),
1551#endif
1552#endif
1542}; 1553};
1543 1554
1544const int nb_settings = sizeof(settings)/sizeof(*settings); 1555const int nb_settings = sizeof(settings)/sizeof(*settings);