commit 0b1561f4474038e9ca6c29272d78794bba594c57
parent b5b367940412177cd531ae6a22faa1454eb382a0
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 14 Dec 2015 21:32:57 +0100
kivy: fix qr code
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gui/kivy/uix/qrcodewidget.py b/gui/kivy/uix/qrcodewidget.py
@@ -102,7 +102,7 @@ class QRCodeWidget(FloatLayout):
cr, cg, cb = cr*255, cg*255, cb*255
for r in range(k):
for c in range(k):
- bext([0, 0, 0] if matrix[r][c] else [cr, cg, cb])
+ bext([0, 0, 0] if matrix[k-1-r][c] else [cr, cg, cb])
# then blit the buffer
buff = ''.join(map(chr, buff))
# update texture