(Image) Add 'is_blocking_on_processing' and 'is_finished_with_processing'

variables to nbio_image_handle_t
This commit is contained in:
twinaphex 2015-03-14 03:07:17 +01:00
parent 06dcd7543f
commit 533f647fe0
2 changed files with 8 additions and 4 deletions

View file

@ -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;

View file

@ -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;
}