aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-11 01:58:42 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-11 01:58:42 +0200
commit8f4ae4338662e8ab26aca95b551756242727d45e (patch)
treeedb4a4f28d9ce37126b7ff0b57a50684e458cd24 /config.def.h
parentdfd0d24855ccd75832dc5bcaafa77c60bee150de (diff)
downloadcqrlogo-8f4ae4338662e8ab26aca95b551756242727d45e.tar.gz
cqrlogo-8f4ae4338662e8ab26aca95b551756242727d45e.tar.zst
make scale and border handling more robust
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index d95e45d..b54c7a3 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,9 +1,13 @@
/* pixels are scaled up by this factor */
-#define QRCODE_SCALE 2
+#define QRCODE_SCALE 2
+/* this is the maximum scale factor */
+#define QRCODE_MAX_SCALE 8
/* width of the border
* this is defined to at least 4, but works well with less */
-# define QRCODE_BORDER 1
+# define QRCODE_BORDER 1
+/* this is the maximum border width */
+# define QRCODE_MAX_BORDER 8
/* error correction level used for QR code
* possible values: QR_ECLEVEL_L (lowest, about 7% error can be corrected)