From 92f02c8a67847b3c6d0ae0868e3c5849b06da79a Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Fri, 21 Apr 2017 20:38:19 +0100 Subject: [PATCH] Kanji works better if data is read to symbol :) --- backend/qr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/qr.c b/backend/qr.c index 9b16214a..117a396a 100644 --- a/backend/qr.c +++ b/backend/qr.c @@ -270,6 +270,8 @@ void qr_binary(int datastream[], int version, int target_binlen, char mode[], in jis -= 0xc140; prod = ((jis >> 8) * 0xc0) + (jis & 0xff); + + qr_bscan(binary, prod, 0x1000); if (debug) { printf("0x%4X ", prod); @@ -1765,8 +1767,6 @@ int micro_qr_intermediate(char binary[], int jisdata[], char mode[], int length, for (i = 0; i < short_data_block_length; i++) { int jis = jisdata[position + i]; int prod; - - int jis = jisdata[position + i]; if (jis >= 0x8140 && jis <= 0x9ffc) jis -= 0x8140;