diff --git a/tasks/task_image.c b/tasks/task_image.c index 05341e4183..d8afa19b8d 100644 --- a/tasks/task_image.c +++ b/tasks/task_image.c @@ -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)