File: fix-ftbfs-new-libfprint.patch

package info (click to toggle)
fprint-demo 20080303git-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 384 kB
  • sloc: ansic: 1,513; makefile: 35; sh: 3
file content (27 lines) | stat: -rw-r--r-- 877 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From ea44a11a48ca1a558e3c9cb0a0504699e6b556fa Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Mon, 8 Oct 2018 16:48:03 +0200
Subject: [PATCH] main: Fix compilation with libfprint >= 0.8.0

With API to be added to libfprint 0.8.3
---
 src/verify.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/verify.c b/src/verify.c
index d3777bc..4f7f8e9 100644
--- a/src/verify.c
+++ b/src/verify.c
@@ -236,7 +236,11 @@ static void plot_minutiae(unsigned char *rgbdata, int width, int height,
 
 	for (i = 0; i < nr_minutiae; i++) {
 		struct fp_minutia *min = minlist[i];
-		size_t pixel_offset = (min->y * width) + min->x;
+		int x, y;
+		size_t pixel_offset;
+
+		fp_minutia_get_coords(min, &x, &y);
+		pixel_offset = (y * width) + x;
 		write_pixel(pixel_offset - 2);
 		write_pixel(pixel_offset - 1);
 		write_pixel(pixel_offset);