mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-19 08:46:57 +00:00
Create menu_driver_load_background
This commit is contained in:
parent
7d7f797c8f
commit
36351bf78d
@ -324,3 +324,15 @@ void menu_driver_populate_entries(const char *path, const char *label,
|
|||||||
if (driver->menu_ctx && driver->menu_ctx->populate_entries)
|
if (driver->menu_ctx && driver->menu_ctx->populate_entries)
|
||||||
driver->menu_ctx->populate_entries(path, label, k);
|
driver->menu_ctx->populate_entries(path, label, k);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool menu_driver_load_background(void *data)
|
||||||
|
{
|
||||||
|
driver_t *driver = driver_get_ptr();
|
||||||
|
if (!driver)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (driver->menu_ctx && driver->menu_ctx->load_background)
|
||||||
|
return driver->menu_ctx->load_background(data);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@ -317,6 +317,8 @@ void menu_driver_render_messagebox(const char *msg);
|
|||||||
void menu_driver_populate_entries(const char *path, const char *label,
|
void menu_driver_populate_entries(const char *path, const char *label,
|
||||||
unsigned k);
|
unsigned k);
|
||||||
|
|
||||||
|
bool menu_driver_load_background(void *data);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -276,8 +276,7 @@ static int cb_image_menu_wallpaper_upload(void *data, size_t len)
|
|||||||
nbio->image.processing_final_state == IMAGE_PROCESS_ERROR_END)
|
nbio->image.processing_final_state == IMAGE_PROCESS_ERROR_END)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (driver->menu_ctx && driver->menu_ctx->load_background)
|
menu_driver_load_background(&nbio->image.ti);
|
||||||
driver->menu_ctx->load_background(&nbio->image.ti);
|
|
||||||
|
|
||||||
texture_image_free(&nbio->image.ti);
|
texture_image_free(&nbio->image.ti);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user