aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/code-layout.c
diff options
context:
space:
mode:
authorLeo Howell <leo@lwh.jp>2009-09-27 16:31:03 +0900
committerLeo Howell <leo@lwh.jp>2009-09-27 16:31:03 +0900
commit559eb9633e1f97d70112f02538ae5e9a0e46f4d5 (patch)
tree78d3ce4998fc9cf60f55162c16323a415d47a57b /lpg/libqr/code-layout.c
parent24e968c84075344de2b6b31dc054bfe988eacd04 (diff)
downloadpdf-simple-sign-559eb9633e1f97d70112f02538ae5e9a0e46f4d5.tar.gz
pdf-simple-sign-559eb9633e1f97d70112f02538ae5e9a0e46f4d5.tar.xz
pdf-simple-sign-559eb9633e1f97d70112f02538ae5e9a0e46f4d5.zip
bitmap handling routines
Diffstat (limited to 'lpg/libqr/code-layout.c')
-rw-r--r--lpg/libqr/code-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lpg/libqr/code-layout.c b/lpg/libqr/code-layout.c
index 228758a..09f29a8 100644
--- a/lpg/libqr/code-layout.c
+++ b/lpg/libqr/code-layout.c
@@ -36,8 +36,8 @@ static int is_data_bit(const struct qr_iterator * i)
static void set_pointer(struct qr_iterator * i)
{
i->mask = 1 << (i->column % CHAR_BIT);
- i->p = i->code->modules
- + i->code->line_stride * i->row
+ i->p = i->code->modules->bits
+ + i->code->modules->stride * i->row
+ i->column / CHAR_BIT;
}