diff options
author | Leo Howell <leo@lwh.jp> | 2009-11-14 18:13:58 +0900 |
---|---|---|
committer | Leo Howell <leo@lwh.jp> | 2009-11-14 18:21:20 +0900 |
commit | 682c2c553b7083645dd5147cdf3ff8650f08a0fd (patch) | |
tree | b162857e26663af24e0c51ce9228f0dff132367a /lpg/libqr/code-create.c | |
parent | 7ccc90b391c269ce3453275ff8725849ea52ccbe (diff) | |
download | pdf-simple-sign-682c2c553b7083645dd5147cdf3ff8650f08a0fd.tar.gz pdf-simple-sign-682c2c553b7083645dd5147cdf3ff8650f08a0fd.tar.xz pdf-simple-sign-682c2c553b7083645dd5147cdf3ff8650f08a0fd.zip |
Store ec level in qr_data struct
Diffstat (limited to 'lpg/libqr/code-create.c')
-rw-r--r-- | lpg/libqr/code-create.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lpg/libqr/code-create.c b/lpg/libqr/code-create.c index 1a38967..f8ef7b9 100644 --- a/lpg/libqr/code-create.c +++ b/lpg/libqr/code-create.c @@ -274,8 +274,7 @@ fail: goto exit; } -struct qr_code * qr_code_create(enum qr_ec_level ec, - const struct qr_data * data) +struct qr_code * qr_code_create(const struct qr_data * data) { struct qr_code * code; struct qr_bitstream * bits = 0; @@ -294,7 +293,7 @@ struct qr_code * qr_code_create(enum qr_ec_level ec, if (!code->modules) goto fail; - bits = make_data(data->version, ec, data->bits); + bits = make_data(data->version, data->ec, data->bits); if (!bits) goto fail; @@ -313,7 +312,7 @@ struct qr_code * qr_code_create(enum qr_ec_level ec, if (mask < 0) goto fail; - if (draw_functional(code, ec, mask) != 0) + if (draw_functional(code, data->ec, mask) != 0) goto fail; exit: |