ansilove

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

commit e7e789746f59971821c11794de9ff04a27332c7c
parent cf065aca84fc7bbfec978818421c4e477c7e97ec
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 16 Jul 2018 20:14:12 +0200

Use ansilove_init() to initialize context

Diffstat:
Msrc/main.c | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -137,14 +137,7 @@ int main(int argc, char *argv[]) { const char *errstr; - // default to 8 if bits option is not specified - options.bits = 8; - - // default to 160 if columns option is not specified - options.columns = 160; - - // default to 0 if retinaScaleFactor option is not specified - options.retinaScaleFactor = 0; + ansilove_init(&ctx, &options); if (pledge("stdio cpath rpath wpath", NULL) == -1) { err(EXIT_FAILURE, "pledge");