commit 5ae8b06b95b09e6e1daa6cc6dbd262a7889b2cb8
parent ee1fd6d72a633e2241345358d7d932ecbb45fb79
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 12 Feb 2019 15:11:20 +0100
Simplify display of default font when no font option is not specified.
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/ansilove.c b/src/ansilove.c
@@ -190,11 +190,6 @@ main(int argc, char *argv[])
fileName = output;
}
- /* default to 80x25 font if font option is not specified */
- if (!font) {
- font = "80x25";
- }
-
/* display name of input and output files */
fprintf(stderr, "\nInput File: %s\n", input);
fprintf(stderr, "Output File: %s\n", fileName);
@@ -255,7 +250,7 @@ main(int argc, char *argv[])
/* gather information and report to the command line */
if (fileIsANSi || fileIsBinary ||
fileIsPCBoard || fileIsTundra) {
- fprintf(stderr, "Font: %s\n", font);
+ fprintf(stderr, "Font: %s\n", font ? font : "80x25");
fprintf(stderr, "Bits: %d\n", options.bits);
}