Revert "(task_image.c) Nits"

This reverts commit 94a9e7b923c4107d72dc29b0a6be10dc586efb82.
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) unsigned *height)
{ {
nbio_image_handle_t *image = (nbio_image_handle_t*)nbio->data; nbio_image_handle_t *image = (nbio_image_handle_t*)nbio->data;
int retval = image_transfer_process( int retval = image_transfer_process(
image->handle, nbio->image_type, image->handle,
nbio->image_type,
&image->ti.pixels, image->size, width, height); &image->ti.pixels, image->size, width, height);
if (retval == IMAGE_PROCESS_ERROR) 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) static int task_image_iterate_process_transfer(nbio_handle_t *nbio)
{ {
unsigned i; unsigned i, width = 0, height = 0;
int retval = 0; int retval = 0;
nbio_image_handle_t *image = (nbio_image_handle_t*)nbio->data; 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++) for (i = 0; i < image->processing_pos_increment; i++)
{ {
unsigned width = 0, height = 0;
retval = task_image_process(nbio, retval = task_image_process(nbio,
&width, &height); &width, &height);
if (retval != IMAGE_PROCESS_NEXT) if (retval != IMAGE_PROCESS_NEXT)