mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(menu_display.c) Cleanups
This commit is contained in:
parent
1e60376e7c
commit
04c23189e9
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user