From 7b02d879190826e07858a3c83139f7f6a5b67f3f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 4 Jun 2013 18:40:50 +0200 Subject: use define for QR-Code Error Correction Level --- cqrlogo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cqrlogo.c b/cqrlogo.c index 06717c5..f1ef1ae 100644 --- a/cqrlogo.c +++ b/cqrlogo.c @@ -14,6 +14,7 @@ #include #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; -- cgit v1.2.3-70-g09d2