From 62e8a6f2ad89be06c7e649c0fc4c564ecad2d070 Mon Sep 17 00:00:00 2001 From: Leo Howell Date: Thu, 8 Oct 2009 14:38:37 +0900 Subject: code format --> version --- lpg/libqr/code-layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lpg/libqr/code-layout.c') diff --git a/lpg/libqr/code-layout.c b/lpg/libqr/code-layout.c index 46d2800..4be3871 100644 --- a/lpg/libqr/code-layout.c +++ b/lpg/libqr/code-layout.c @@ -19,7 +19,7 @@ struct qr_iterator { void qr_layout_init_mask(struct qr_code * code) { int x, y; - int dim = code_side_length(code->format); + int dim = qr_code_width(code); struct qr_bitmap * bmp = code->modules; assert(bmp->mask); @@ -110,7 +110,7 @@ struct qr_iterator * qr_layout_begin(struct qr_code * code) i = malloc(sizeof(*i)); if (i) { - i->dim = code_side_length(code->format); + i->dim = qr_code_width(code); i->code = code; i->column = i->dim - 1; i->row = i->dim - 1; -- cgit v1.2.3-70-g09d2