From 533f647fe096d744c607ed7e4c77e4593b9bcdf4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 14 Mar 2015 03:07:17 +0100 Subject: [PATCH] (Image) Add 'is_blocking_on_processing' and 'is_finished_with_processing' variables to nbio_image_handle_t --- general.h | 2 ++ runloop_data.c | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/general.h b/general.h index 38498d787c..1337e2e679 100644 --- a/general.h +++ b/general.h @@ -405,7 +405,9 @@ typedef struct nbio_image_handle { struct texture_image ti; bool is_blocking; + bool is_blocking_on_processing; bool is_finished; + bool is_finished_with_processing; transfer_cb_t cb; struct rpng_t *handle; unsigned pos_increment; diff --git a/runloop_data.c b/runloop_data.c index 217f7a8cd8..58c5300637 100644 --- a/runloop_data.c +++ b/runloop_data.c @@ -191,10 +191,12 @@ static int cb_image_menu_wallpaper(void *data, size_t len) texture_image_free(&nbio->image.ti); - nbio->image.is_blocking = true; - nbio->image.is_finished = true; - nbio->is_blocking = true; - nbio->is_finished = true; + nbio->image.is_blocking = true; + nbio->image.is_blocking_on_processing = true; + nbio->image.is_finished = true; + nbio->image.is_finished_with_processing = false; + nbio->is_blocking = true; + nbio->is_finished = true; return 0; }