MCPcopy Create free account
hub / github.com/DSVVA/MHY_Scanner / drawAlignmentPattern

Method drawAlignmentPattern

3rdparty/QR-Code-generator/cpp/qrcodegen.cpp:477–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475
476
477void QrCode::drawAlignmentPattern(int x, int y) {
478 for (int dy = -2; dy <= 2; dy++) {
479 for (int dx = -2; dx <= 2; dx++)
480 setFunctionModule(x + dx, y + dy, std::max(std::abs(dx), std::abs(dy)) != 1);
481 }
482}
483
484
485void QrCode::setFunctionModule(int x, int y, bool isDark) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected