ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit dba6b3ab6e9c9d4562ba20ea9f17cea312736da0
parent 84b2a43cfedf1a6a2ef65801e1f0eae54a5906bf
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 24 Oct 2018 22:11:54 +0200

Account for the retinaScaleFactor to scale_factor renaming

Diffstat:
Msrc/main.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -195,11 +195,11 @@ int main(int argc, char *argv[]) { output = optarg; break; case 'r': - options.retinaScaleFactor = 2; + options.scale_factor = 2; break; case 'R': // convert numeric command line flags to integer values - options.retinaScaleFactor = strtonum(optarg, 2, 8, &errstr); + options.scale_factor = strtonum(optarg, 2, 8, &errstr); if (errstr) { fprintf(stderr, "\nInvalid value for retina scale factor (must range from 2 to 8).\n\n"); @@ -322,8 +322,8 @@ int main(int argc, char *argv[]) { fprintf(stderr, "Columns: %d\n", options.columns); } - if (options.retinaScaleFactor) { - fprintf(stderr, "Scale factor: %d\n", options.retinaScaleFactor); + if (options.scale_factor) { + fprintf(stderr, "Scale factor: %d\n", options.scale_factor); } // TODO: munmap, with original ctxSize