diff options
Diffstat (limited to 'apps/settings_menu.c')
| -rw-r--r-- | apps/settings_menu.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 2de6d93..e70ed67 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -300,7 +300,19 @@ static bool invert_cursor(void) STR(LANG_INVERT_CURSOR_POINTER), NULL); } - + +#ifdef HAVE_LCD_COLOR +/** + * Menu to clear the backdrop image + */ +static bool clear_main_backdrop(void) +{ + global_settings.backdrop_file[0]=0; + lcd_set_backdrop(NULL); + return true; +} +#endif + /** * Menu to configure the battery display on status bar */ @@ -1563,6 +1575,9 @@ static bool lcd_settings_menu(void) { ID2P(LANG_FLIP_DISPLAY), flip_display }, { ID2P(LANG_INVERT_CURSOR), invert_cursor }, #endif +#ifdef HAVE_LCD_COLOR + { ID2P(LANG_CLEAR_BACKDROP), clear_main_backdrop }, +#endif }; m=menu_init( items, sizeof(items) / sizeof(*items), NULL, |