Revert "(task_image.c) Nits"

This reverts commit 94a9e7b923.
This commit is contained in:
twinaphex 2016-05-20 21:03:42 +02:00
parent 2cd64c276f
commit fec5aca60b

View File

@ -108,8 +108,10 @@ static int task_image_process(
unsigned *height)
{
nbio_image_handle_t *image = (nbio_image_handle_t*)nbio->data;
int retval = image_transfer_process(
image->handle, nbio->image_type,
int retval = image_transfer_process(
image->handle,
nbio->image_type,
&image->ti.pixels, image->size, width, height);
if (retval == IMAGE_PROCESS_ERROR)
@ -159,7 +161,7 @@ static int cb_image_menu_thumbnail(void *data, size_t len)
static int task_image_iterate_process_transfer(nbio_handle_t *nbio)
{
unsigned i;
unsigned i, width = 0, height = 0;
int retval = 0;
nbio_image_handle_t *image = (nbio_image_handle_t*)nbio->data;
@ -168,7 +170,6 @@ static int task_image_iterate_process_transfer(nbio_handle_t *nbio)
for (i = 0; i < image->processing_pos_increment; i++)
{
unsigned width = 0, height = 0;
retval = task_image_process(nbio,
&width, &height);
if (retval != IMAGE_PROCESS_NEXT)