Kanji works better if data is read to symbol :)

This commit is contained in:
Robin Stuart 2017-04-21 20:38:19 +01:00
parent a8077535b2
commit 92f02c8a67

View File

@ -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;