libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit cfc7e1da685bd388d5af68c0e4f7a4116dbe580b
parent 91320ecf28647b75e31b0cb2633f8ae18d70c74f
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 11 Sep 2018 23:20:33 +0200

Modify all loaders to use the new output function

Diffstat:
Msrc/loaders/ansi.c | 2+-
Msrc/loaders/artworx.c | 2+-
Msrc/loaders/binary.c | 2+-
Msrc/loaders/icedraw.c | 2+-
Msrc/loaders/pcboard.c | 2+-
Msrc/loaders/tundra.c | 2+-
Msrc/loaders/xbin.c | 2+-
7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -457,7 +457,7 @@ int ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options) gdImageColorTransparent(canvas, 0); // create output image - output(canvas, options->fileName, options->retina, options->retinaScaleFactor); + output(ctx, canvas, options->retinaScaleFactor); // free memory free(ansi_buffer); diff --git a/src/loaders/artworx.c b/src/loaders/artworx.c @@ -65,7 +65,7 @@ int ansilove_artworx(struct ansilove_ctx *ctx, struct ansilove_options *options) } // create output file - output(canvas, options->fileName, options->retina, options->retinaScaleFactor); + output(ctx, canvas, options->retinaScaleFactor); return 0; } diff --git a/src/loaders/binary.c b/src/loaders/binary.c @@ -76,7 +76,7 @@ int ansilove_binary(struct ansilove_ctx *ctx, struct ansilove_options *options) } // create output image - output(canvas, options->fileName, options->retina, options->retinaScaleFactor); + output(ctx, canvas, options->retinaScaleFactor); return 0; } diff --git a/src/loaders/icedraw.c b/src/loaders/icedraw.c @@ -115,7 +115,7 @@ int ansilove_icedraw(struct ansilove_ctx *ctx, struct ansilove_options *options) } // create output file - output(canvas, options->fileName, options->retina, options->retinaScaleFactor); + output(ctx, canvas, options->retinaScaleFactor); // free memory free(idf_buffer); diff --git a/src/loaders/pcboard.c b/src/loaders/pcboard.c @@ -172,7 +172,7 @@ int ansilove_pcboard(struct ansilove_ctx *ctx, struct ansilove_options *options) } // create output image - output(canvas, options->fileName, options->retina, options->retinaScaleFactor); + output(ctx, canvas, options->retinaScaleFactor); // free memory free(pcboard_buffer); diff --git a/src/loaders/tundra.c b/src/loaders/tundra.c @@ -163,7 +163,7 @@ int ansilove_tundra(struct ansilove_ctx *ctx, struct ansilove_options *options) } // create output image - output(canvas, options->fileName, options->retina, options->retinaScaleFactor); + output(ctx, canvas, options->retinaScaleFactor); return 0; } diff --git a/src/loaders/xbin.c b/src/loaders/xbin.c @@ -168,7 +168,7 @@ int ansilove_xbin(struct ansilove_ctx *ctx, struct ansilove_options *options) } // create output file - output(canvas, options->fileName, options->retina, options->retinaScaleFactor); + output(ctx, canvas, options->retinaScaleFactor); // nuke garbage free(font_data_xbin);