Add menu_wallpaper_opacity

This commit is contained in:
twinaphex 2016-07-10 17:13:19 +02:00
parent 37aee162c9
commit 7d518bd4a8
3 changed files with 4 additions and 2 deletions

View File

@ -524,6 +524,8 @@ static bool xmb_shadows_enable = false;
static bool xmb_shadows_enable = true;
#endif
static float menu_wallpaper_opacity = 0.300;
static unsigned menu_background_gradient = 4;
#if defined(HAVE_OPENGLES2) || defined(OSX_PPC)

View File

@ -609,7 +609,7 @@ static void config_set_defaults(void)
settings->menu.timedate_enable = true;
settings->menu.core_enable = true;
settings->menu.dynamic_wallpaper_enable = false;
settings->menu.wallpaper.opacity = 0.5f;
settings->menu.wallpaper.opacity = menu_wallpaper_opacity;
settings->menu.thumbnails = menu_thumbnails_default;
settings->menu.show_advanced_settings = show_advanced_settings;
settings->menu.entry_normal_color = menu_entry_normal_color;

View File

@ -6597,7 +6597,7 @@ static bool setting_append_list(
&settings->menu.wallpaper.opacity,
msg_hash_to_str(MENU_ENUM_LABEL_MENU_WALLPAPER_OPACITY),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER_OPACITY),
0.5f,
menu_wallpaper_opacity,
"%.3f %",
&group_info,
&subgroup_info,