kivy: fix qr code

This commit is contained in:
ThomasV 2015-12-14 21:32:57 +01:00
parent b5b3679404
commit 0b1561f447
1 changed files with 1 additions and 1 deletions

View File

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