From 3d780674174e5f7d9772964071ddead07ff06a98 Mon Sep 17 00:00:00 2001
From: Kwanghoon Son <k.son@samsung.com>
Date: Wed, 18 Jan 2023 11:29:35 +0900
-Subject: [PATCH 4/4] Fix draw_circle radius to 0.45 in finder
+Subject: [PATCH 4/4] Fix draw_circle radius to half in finder
-Reader works over than 0.45
+Reader works over than half
Change-Id: Ifb9ffda6776c5c40411373c04a70e3a13d8d8086
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
for(int cc=0; cc < 3; cc++)
for(i=3; i>0; i--) {
- draw_circle(scaled_pixelbuf, scale_width, scale_height, cx[cc], cy[cc], (symbol->dot_size / 2.0) * (i*2 + 1) * scaler, '0' + i%2);
-+ //less than 0.45 will not works well in reader
-+ draw_circle(scaled_pixelbuf, scale_width, scale_height, cx[cc], cy[cc], 0.45 * (i*2 + 1) * scaler, '0' + i%2);
++ //less than half will not works well in reader
++ draw_circle(scaled_pixelbuf, scale_width, scale_height, cx[cc], cy[cc], (i*2 + 1) * scaler / 2, '0' + i%2);
}
} else if (symbol->output_options & BARCODE_FINDER_ROUNDRECT) {