mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Tweaked QrCode.drawFormatBits() to use end-exclusive range in second copy for clarity, in most languages.
This commit is contained in:
+1
-1
@@ -243,7 +243,7 @@ void QrCode::drawFormatBits(int mask) {
|
||||
setFunctionModule(14 - i, 8, getBit(bits, i));
|
||||
|
||||
// Draw second copy
|
||||
for (int i = 0; i <= 7; i++)
|
||||
for (int i = 0; i < 8; i++)
|
||||
setFunctionModule(size - 1 - i, 8, getBit(bits, i));
|
||||
for (int i = 8; i < 15; i++)
|
||||
setFunctionModule(8, size - 15 + i, getBit(bits, i));
|
||||
|
||||
Reference in New Issue
Block a user