summaryrefslogtreecommitdiffstats
path: root/cqrlogo.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-06-04 18:40:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-06-04 18:40:50 +0200
commit7b02d879190826e07858a3c83139f7f6a5b67f3f (patch)
treeb580331cb98c8607118720708b2d19604607a128 /cqrlogo.c
parent7f84fb9489f55b373db819b5117e706c75578300 (diff)
downloadcqrlogo-7b02d879190826e07858a3c83139f7f6a5b67f3f.tar.gz
cqrlogo-7b02d879190826e07858a3c83139f7f6a5b67f3f.tar.zst
use define for QR-Code Error Correction Level
Diffstat (limited to 'cqrlogo.c')
-rw-r--r--cqrlogo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cqrlogo.c b/cqrlogo.c
index 06717c5..f1ef1ae 100644
--- a/cqrlogo.c
+++ b/cqrlogo.c
@@ -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;