ansilove

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

commit 38b7fa4248eab7d248c1bdedf49b7462ebba67aa
parent 4c3f89b544e9a7a78255111874ac21c1bbaa9ef2
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 17 Jan 2020 17:55:18 +0100

Set icecolors to true if defined in SAUCE record ANSiFlags.

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

diff --git a/src/ansilove.c b/src/ansilove.c @@ -227,6 +227,10 @@ main(int argc, char *argv[]) if (fileHasSAUCE) ctx.length -= 129 - (record->comments > 0 ? 5 + 64 * record->comments : 0); + /* set icecolors to true if defined in SAUCE record ANSiFlags */ + if (fileHasSAUCE && (record->flags & 1)) + options.icecolors = true; + int (*loader)(struct ansilove_ctx *, struct ansilove_options *); /* create the output PNG data by invoking the appropriate function */