aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;