From 9c9e26d70c32692c15164e0b65672d200dac7f4b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 4 May 2015 10:18:00 +0200 Subject: [PATCH] Add texture_image_set_color_shifts and texture_image_color_convert to wallpaper_cb function --- runloop_data.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runloop_data.c b/runloop_data.c index b3a6c50f8e..b76bca0689 100644 --- a/runloop_data.c +++ b/runloop_data.c @@ -307,6 +307,7 @@ static int rarch_main_data_http_iterate_poll(http_handle_t *http) #ifdef HAVE_RPNG static int cb_image_menu_wallpaper_upload(void *data, size_t len) { + unsigned r_shift, g_shift, b_shift, a_shift; nbio_handle_t *nbio = (nbio_handle_t*)data; if (!nbio || !data) @@ -316,6 +317,12 @@ static int cb_image_menu_wallpaper_upload(void *data, size_t len) nbio->image.processing_final_state == IMAGE_PROCESS_ERROR_END) return -1; + texture_image_set_color_shifts(&r_shift, &g_shift, &b_shift, + &a_shift); + + texture_image_color_convert(r_shift, g_shift, b_shift, + a_shift, &nbio->image.ti); + menu_driver_load_background(&nbio->image.ti); texture_image_free(&nbio->image.ti);