commit 692bc25f7ed12881f528535ba607849bcd64f4d3
parent 80b7386ae8e7ccd3334e465afc617a17d8936a53
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 16 Nov 2019 10:24:21 +0100
qr gen
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -259,7 +259,7 @@ show_qrcode (const char *uri)
unsigned int off =
((x - xOff) * qrc->width / size) + ((y - yOff) * qrc->width / size)
* qrc->width;
- qrDisplay.memory[y * size + x] =
+ qrDisplay.memory[y * qrDisplay.var_info.xres + x] =
(0 == (qrc->data[off] & 1)) ? 0xFF : 0x00;
}