ansilove

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

commit ca667c88888d910104e2cc16e9a24b0f955ddc52
parent 43253f50331c8127e81e88e8b763f857b0e41a24
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sun, 26 Jul 2015 19:22:19 +0200

Populate retinaout if retina mode is enabled

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

diff --git a/src/main.c b/src/main.c @@ -184,6 +184,12 @@ int main(int argc, char *argv[]) snprintf(output, outputLen, "%s%s", input, ".png"); } + if (createRetinaRep) { + int retinaLen = strlen(input) + 8; + retinaout = malloc(retinaLen); + snprintf(retinaout, retinaLen, "%s%s", input, "@2x.png"); + } + // default to 8 if bits option is not specified if (!bits) { bits = "8";