mirror of
https://github.com/openharmony/third_party_qrcodegen.git
synced 2026-07-16 08:14:28 -04:00
Clarified code in QrCode.drawVersion() in 4 language versions.
This commit is contained in:
+2
-1
@@ -259,7 +259,8 @@ void QrCode::drawVersion() {
|
||||
// Draw two copies
|
||||
for (int i = 0; i < 18; i++) {
|
||||
bool bit = getBit(bits, i);
|
||||
int a = size - 11 + i % 3, b = i / 3;
|
||||
int a = size - 11 + i % 3;
|
||||
int b = i / 3;
|
||||
setFunctionModule(a, b, bit);
|
||||
setFunctionModule(b, a, bit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user