aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-02-20 11:40:08 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-02-20 11:40:08 +0100
commit716dbf5e815737cb454f45815b2e9bc4fa1462e0 (patch)
treedb23cd5a36f19c99193e73e27faf799a614f8158
parent2c277dc0c5cb936a23ee58948854b2e3eb6dd251 (diff)
downloadcqrlogo-716dbf5e815737cb454f45815b2e9bc4fa1462e0.tar.gz
cqrlogo-716dbf5e815737cb454f45815b2e9bc4fa1462e0.tar.zst
increase the default max scale factor
-rw-r--r--Makefile4
-rw-r--r--config.def.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f38be3a..f5e2862 100644
--- a/Makefile
+++ b/Makefile
@@ -90,7 +90,7 @@ check:
$(ZBARIMG) --raw -q check.png | $(GREP) -e '^http://$(SERVER)/$$'
SERVER_NAME=$(SERVER) HTTP_REFERER=http://$(SERVER)/ \
- QUERY_STRING='scale=10' \
+ QUERY_STRING='scale=20' \
./cqrlogo.cgi | $(SED) '1,/^$$/d' > \
check.png
$(FILE) check.png | $(GREP) 'PNG image data'
@@ -177,7 +177,7 @@ check:
$(ZBARIMG) --raw -q check.png | $(GREP) -e '^http://$(SERVER)/$$'
SERVER_NAME=$(SERVER) HTTP_REFERER=http://$(SERVER)/ \
- QUERY_STRING='scale=10' \
+ QUERY_STRING='scale=20' \
./cqrlogo.fcgi | $(SED) '1,/^$$/d' > \
check.png
$(FILE) check.png | $(GREP) 'PNG image data'
diff --git a/config.def.h b/config.def.h
index a2e8949..1ac13c4 100644
--- a/config.def.h
+++ b/config.def.h
@@ -18,7 +18,7 @@
/* pixels are scaled up by this factor */
#define QRCODE_SCALE 2
/* this is the maximum scale factor */
-#define QRCODE_MAX_SCALE 8
+#define QRCODE_MAX_SCALE 16
/* width of the border
* this is defined to at least 4, but works well with less */