diff options
author | Christian Hesse <mail@eworm.de> | 2013-06-04 18:40:50 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-06-04 18:40:50 +0200 |
commit | 7b02d879190826e07858a3c83139f7f6a5b67f3f (patch) | |
tree | b580331cb98c8607118720708b2d19604607a128 | |
parent | 7f84fb9489f55b373db819b5117e706c75578300 (diff) | |
download | cqrlogo-7b02d879190826e07858a3c83139f7f6a5b67f3f.tar.gz cqrlogo-7b02d879190826e07858a3c83139f7f6a5b67f3f.tar.zst |
use define for QR-Code Error Correction Level
-rw-r--r-- | cqrlogo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -14,6 +14,7 @@ #include <qrencode.h> #define QRCODE_SCALE 2 +#define QRCODE_LEVEL QR_ECLEVEL_L GdkPixbuf * encode_qrcode (char *text) { QRcode *qrcode; @@ -22,7 +23,7 @@ GdkPixbuf * encode_qrcode (char *text) { gchar *pixel; unsigned char *data; - qrcode = QRcode_encodeData(strlen(text), text, 0, QR_ECLEVEL_L); + qrcode = QRcode_encodeData(strlen(text), text, 0, QRCODE_LEVEL); if (qrcode == NULL) return NULL; |