(menu_display.c) Cleanups

This commit is contained in:
twinaphex 2017-01-09 17:10:57 +01:00
parent 1e60376e7c
commit 04c23189e9
2 changed files with 2 additions and 5 deletions

View File

@ -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)

View File

@ -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);