From 9cd0d46476c16bc168f134b33599f6af95883b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Fri, 22 Apr 2016 18:16:31 +0700 Subject: [PATCH] (XMB) Add back the red gradient --- menu/cbs/menu_cbs_get_value.c | 3 +++ menu/drivers/xmb.c | 9 +++++++++ menu/menu_setting.c | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/menu/cbs/menu_cbs_get_value.c b/menu/cbs/menu_cbs_get_value.c index e1e7546595..dd42eeb6a9 100644 --- a/menu/cbs/menu_cbs_get_value.c +++ b/menu/cbs/menu_cbs_get_value.c @@ -658,6 +658,9 @@ static void menu_action_setting_disp_set_label_xmb_gradient( case 6: snprintf(s, len, "%s", "Undersea"); break; + case 7: + snprintf(s, len, "%s", "Volcanic Red"); + break; } } diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 0f68cfaed3..e713ac4c64 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -281,6 +281,13 @@ float gradient_undersea[16] = { }; +float gradient_volcanic_red[16] = { + 1.0, 0.0, 0.1, 1.00, + 1.0, 0.1, 0.0, 1.00, + 0.1, 0.0, 0.1, 1.00, + 0.1, 0.0, 0.1, 1.00, +}; + static const char *xmb_theme_ident(void) { settings_t *settings = config_get_ptr(); @@ -338,6 +345,8 @@ static float *xmb_gradient_ident(void) return &gradient_apple_green[0]; case 6: return &gradient_undersea[0]; + case 7: + return &gradient_volcanic_red[0]; case 0: default: break; diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 7e6c74ea75..dd20b376cc 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -5914,7 +5914,7 @@ static bool setting_append_list( parent_group, general_write_handler, general_read_handler); - menu_settings_list_current_add_range(list, list_info, 0, 6, 1, true, true); + menu_settings_list_current_add_range(list, list_info, 0, 7, 1, true, true); } CONFIG_BOOL(