From cce12841f2acb04640d7d7f4515770b0c31433c8 Mon Sep 17 00:00:00 2001 From: Timur Celik Date: Sat, 10 Feb 2018 00:37:33 +0100 Subject: [PATCH] assembling: Fix assembling of frames for non-reverse stripes https://bugs.freedesktop.org/show_bug.cgi?id=105027 --- libfprint/assembling.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libfprint/assembling.c b/libfprint/assembling.c index 2c4ccc6..ec37a25 100644 --- a/libfprint/assembling.c +++ b/libfprint/assembling.c @@ -280,11 +280,18 @@ struct fp_img *fpi_assemble_frames(struct fpi_frame_asmbl_ctx *ctx, do { fpi_frame = stripe->data; - y += fpi_frame->delta_y; - x += fpi_frame->delta_x; + if(reverse) { + y += fpi_frame->delta_y; + x += fpi_frame->delta_x; + } aes_blit_stripe(ctx, img, fpi_frame, x, y); + if(!reverse) { + y += fpi_frame->delta_y; + x += fpi_frame->delta_x; + } + stripe = g_slist_next(stripe); i++; } while (i < stripes_len); -- 2.17.0