ansilove

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

commit 3cea5ba2e7631e7569a6fea4005e10967ada41f6
parent 251c4b79deb07c45ff1d9eff225bb137dfcc3f0c
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 20 Jan 2016 16:39:54 +0100

Display name of input and output files before lowercasing file extension, for correct display

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

diff --git a/src/main.c b/src/main.c @@ -261,6 +261,14 @@ int main(int argc, char *argv[]) { font = "80x25"; } + // display name of input and output files + printf("\nInput File: %s\n", input); + printf("Output File: %s\n", outputFile); + + if (createRetinaRep) { + printf("Retina Output File: %s\n", retinaout); + } + // get file extension char *fext = strrchr(input, '.'); fext = fext ? strtolower(fext) : ""; @@ -293,11 +301,6 @@ int main(int argc, char *argv[]) { } // gather information and report to the command line - printf("\nInput File: %s\n", input); - printf("Output File: %s\n", outputFile); - if (createRetinaRep) { - printf("Retina Output File: %s\n", retinaout); - } if (fileIsANSi || fileIsBinary || fileIsPCBoard || fileIsTundra) { printf("Font: %s\n", font);