aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/code-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/code-layout.c')
-rw-r--r--lpg/libqr/code-layout.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lpg/libqr/code-layout.c b/lpg/libqr/code-layout.c
index 4be3871..ed01112 100644
--- a/lpg/libqr/code-layout.c
+++ b/lpg/libqr/code-layout.c
@@ -45,7 +45,14 @@ void qr_layout_init_mask(struct qr_code * code)
if (x < 9 && y >= dim - 8) /* bottom-left */
continue;
- /* XXX: format data */
+ /* version info */
+ if (code->version >= 7) {
+ if (y < 6 && x >= dim - 11)
+ continue;
+ if (x < 6 && y >= dim - 11)
+ continue;
+ }
+
/* XXX: alignment pattern */
row[off] |= bit;