ansilove

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

commit 78d7dfc9dc57401c34807bfa9c353b2d9be870fc
parent 1bf35d2f060f33b66dd820c2dac8e46a2d39aa3b
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 26 Sep 2018 18:44:53 +0200

Add a new switch (-d) to toggle DOS aspect ratio

Diffstat:
Msrc/main.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c @@ -91,6 +91,7 @@ static void synopsis(void) { "OPTIONS:\n" " -b bits set to 9 to render 9th column of block characters (default: 8)\n" " -c columns adjust number of columns for BIN files (default: 160)\n" + " -d use DOS aspect ratio\n" " -e print a list of examples\n" " -f font select font (default: 80x25)\n" " -h show help\n" @@ -136,7 +137,7 @@ int main(int argc, char *argv[]) { err(EXIT_FAILURE, "pledge"); } - while ((getoptFlag = getopt(argc, argv, "b:c:ef:him:o:rR:sv")) != -1) { + while ((getoptFlag = getopt(argc, argv, "b:c:def:him:o:rR:sv")) != -1) { switch (getoptFlag) { case 'b': // convert numeric command line flags to integer values @@ -158,6 +159,9 @@ int main(int argc, char *argv[]) { } break; + case 'd': + options.dos = true; + break; case 'e': listExamples(); return EXIT_SUCCESS;