diff --git a/menu/menu_display.c b/menu/menu_display.c index 71b1bdd6fe..7dd6405c82 100644 --- a/menu/menu_display.c +++ b/menu/menu_display.c @@ -484,9 +484,8 @@ void menu_display_draw(menu_display_ctx_draw_t *draw) menu_disp->draw(draw); } -bool menu_display_shader_pipeline_active(void) +static bool menu_display_shader_pipeline_active(settings_t *settings) { - settings_t *settings = config_get_ptr(); if (!string_is_equal(menu_driver_ident(), "xmb")) return false; if (settings->menu.xmb.shader_pipeline == XMB_SHADER_PIPELINE_WALLPAPER) @@ -526,7 +525,7 @@ void menu_display_draw_bg(menu_display_ctx_draw_t *draw, bool add_opacity_to_wal draw->coords = &coords; - if (!menu_display_libretro_running() && !menu_display_shader_pipeline_active()) + if (!menu_display_libretro_running() && !menu_display_shader_pipeline_active(settings)) add_opacity_to_wallpaper = true; if (add_opacity_to_wallpaper) diff --git a/menu/menu_display.h b/menu/menu_display.h index a8fddf2e4d..258d07ea7e 100644 --- a/menu/menu_display.h +++ b/menu/menu_display.h @@ -278,8 +278,6 @@ void menu_display_draw_text( uint32_t color, enum text_alignment text_align, float scale_factor, bool shadows_enable, float shadow_offset); -bool menu_display_shader_pipeline_active(void); - void menu_display_set_alpha(float *color, float alpha_value); font_data_t *menu_display_font(enum application_special_type type, float font_size);