diff options
author | Leo Howell <leo@lwh.jp> | 2009-10-08 14:48:28 +0900 |
---|---|---|
committer | Leo Howell <leo@lwh.jp> | 2009-10-08 14:52:01 +0900 |
commit | 6359bfddcc5868093418784fa2e972581ebd82b6 (patch) | |
tree | 6175f5f428d45dcc86410b9578fd98dc3fc08700 /lpg/libqr/code-layout.c | |
parent | 62e8a6f2ad89be06c7e649c0fc4c564ecad2d070 (diff) | |
download | pdf-simple-sign-6359bfddcc5868093418784fa2e972581ebd82b6.tar.gz pdf-simple-sign-6359bfddcc5868093418784fa2e972581ebd82b6.tar.xz pdf-simple-sign-6359bfddcc5868093418784fa2e972581ebd82b6.zip |
render version bits
Diffstat (limited to 'lpg/libqr/code-layout.c')
-rw-r--r-- | lpg/libqr/code-layout.c | 9 |
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; |