1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-20 06:40:18 +00:00

Don't use rarch_task_push_image inside xmb_context_reset_background

This commit is contained in:
twinaphex 2016-05-21 21:00:37 +02:00
parent 7fe5d21452
commit 40e1082cda

@ -2785,7 +2785,7 @@ static void xmb_context_reset_textures(
xmb->add_tab_node.zoom = xmb->categories.active.zoom;
}
static void xmb_context_reset_background(const char *iconpath)
static void xmb_context_reset_background(xmb_handle_t *xmb, const char *iconpath)
{
char path[PATH_MAX_LENGTH] = {0};
settings_t *settings = config_get_ptr();
@ -2794,10 +2794,13 @@ static void xmb_context_reset_background(const char *iconpath)
if (*settings->path.menu_wallpaper)
strlcpy(path, settings->path.menu_wallpaper, sizeof(path));
if (path_file_exists(path))
rarch_task_push_image_load(path, "cb_menu_wallpaper",
menu_display_handle_wallpaper_upload, NULL);
{
struct texture_image ti = {0};
image_texture_load(&ti, path);
xmb_load_image(xmb, &ti, MENU_IMAGE_WALLPAPER);
image_texture_free(&ti);
}
}
static void xmb_context_reset(void *data)
@ -2826,7 +2829,7 @@ static void xmb_context_reset(void *data)
xmb_layout(xmb);
xmb_font(xmb);
xmb_context_reset_textures(xmb, iconpath);
xmb_context_reset_background(iconpath);
xmb_context_reset_background(xmb, iconpath);
xmb_context_reset_horizontal_list(xmb, themepath);
if (!string_is_equal(xmb_thumbnails_ident(), "OFF"))