From 9437c98d54c33a5a752f4ffd28a761b7cbf32141 Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <anarsoul@gmail.com>
Date: Tue, 22 Sep 2015 19:49:58 -0700
Subject: [PATCH] lib: frame assembling: flip image for non-reverse direction

It was here for aes2501 and aes1610 before moving assembling routines
into common code.
---
 libfprint/assembling.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libfprint/assembling.c b/libfprint/assembling.c
index cde4eaf..1052f99 100644
--- a/libfprint/assembling.c
+++ b/libfprint/assembling.c
@@ -266,6 +266,7 @@ struct fp_img *fpi_assemble_frames(struct fpi_frame_asmbl_ctx *ctx,
 	/* Create buffer big enough for max image */
 	img = fpi_img_new(ctx->image_width * height);
 	img->flags = FP_IMG_COLORS_INVERTED;
+	img->flags |= reverse ? 0 :  FP_IMG_H_FLIPPED | FP_IMG_V_FLIPPED;
 	img->width = ctx->image_width;
 	img->height = height;