commit be7344d4e8d155e33d3a009232e410ccaef12e12
parent ecbb4aba3113b7f05f1b06ddff9aa36e4205257c
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 16 Nov 2019 11:07:38 +0100
see stuff
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -257,7 +257,7 @@ show_qrcode (const char *uri)
for (unsigned int y = 0; y < qrDisplay.var_info.yres - 2 * yOff; y++)
{
unsigned int off =
- (x * qrc->width / size) + (y * qrc->width / size) * qrc->width;
+ (x * nwidth / size) + (y * nwidth / size) * qrc->width;
qrDisplay.memory[(y + yOff) * qrDisplay.var_info.xres + (x + xOff)] =
(0 == (qrc->data[off] & 1)) ? 0xFFFF : 0x0000;
}