commit f8837dfbbe12af3e06a48bc1cb43b098ddf52798
parent ee1f9c2d71a3aeea1a230a33de5a54cfab6301ed
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 19 Dec 2017 14:59:43 +0100
Do not break compatibility, '-r' produces @2x output and '-R' allows specifying a custom scale factor
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
@@ -155,7 +155,7 @@ int main(int argc, char *argv[]) {
err(EXIT_FAILURE, "pledge");
}
- while ((getoptFlag = getopt(argc, argv, "b:c:ef:him:o:r:sv")) != -1) {
+ while ((getoptFlag = getopt(argc, argv, "b:c:ef:him:o:rR:sv")) != -1) {
switch(getoptFlag) {
case 'b':
// convert numeric command line flags to integer values
@@ -196,6 +196,9 @@ int main(int argc, char *argv[]) {
output = optarg;
break;
case 'r':
+ retinaScaleFactor = 2;
+ break;
+ case 'R':
// convert numeric command line flags to integer values
retinaScaleFactor = strtonum(optarg, 2, 4, &errstr);