(XMB) Move function to menu_display.c

This commit is contained in:
twinaphex 2016-05-21 20:47:49 +02:00
parent 0798157df3
commit 2f2ddb472a
3 changed files with 19 additions and 16 deletions

View File

@ -728,22 +728,6 @@ static void xmb_update_thumbnail_path(void *data, unsigned i)
#endif #endif
} }
static void menu_display_handle_thumbnail_upload(void *task_data,
void *user_data, const char *err)
{
menu_ctx_load_image_t load_image_info;
struct texture_image *img = (struct texture_image*)task_data;
load_image_info.data = img;
load_image_info.type = MENU_IMAGE_THUMBNAIL;
menu_driver_ctl(RARCH_MENU_CTL_LOAD_IMAGE, &load_image_info);
image_texture_free(img);
free(img);
free(user_data);
}
static void xmb_update_thumbnail_image(void *data) static void xmb_update_thumbnail_image(void *data)
{ {
xmb_handle_t *xmb = (xmb_handle_t*)data; xmb_handle_t *xmb = (xmb_handle_t*)data;

View File

@ -538,6 +538,22 @@ bool menu_display_get_tex_coords(menu_display_ctx_coord_draw_t *draw)
return true; return true;
} }
void menu_display_handle_thumbnail_upload(void *task_data,
void *user_data, const char *err)
{
menu_ctx_load_image_t load_image_info;
struct texture_image *img = (struct texture_image*)task_data;
load_image_info.data = img;
load_image_info.type = MENU_IMAGE_THUMBNAIL;
menu_driver_ctl(RARCH_MENU_CTL_LOAD_IMAGE, &load_image_info);
image_texture_free(img);
free(img);
free(user_data);
}
void menu_display_handle_wallpaper_upload(void *task_data, void menu_display_handle_wallpaper_upload(void *task_data,
void *user_data, const char *err) void *user_data, const char *err)
{ {

View File

@ -182,6 +182,9 @@ void menu_display_timedate(menu_display_ctx_datetime_t *datetime);
void menu_display_handle_wallpaper_upload(void *task_data, void menu_display_handle_wallpaper_upload(void *task_data,
void *user_data, const char *err); void *user_data, const char *err);
void menu_display_handle_thumbnail_upload(void *task_data,
void *user_data, const char *err);
void menu_display_push_quad( void menu_display_push_quad(
unsigned width, unsigned height, unsigned width, unsigned height,
const float *colors, int x1, int y1, const float *colors, int x1, int y1,