ansilove

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

commit 05c5a1b9cc1a1cc102bb3955b72c129c0589c03f
parent 95fbe5e6d4b2f798816dd4a25c8ac97148ab7343
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 20 Jan 2016 22:13:23 +0100

Pruning more remnants from the PHP version

Diffstat:
Msrc/loaders/ansi.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -465,7 +465,7 @@ void ansi(char *input, char *output, char *retinaout, char *font, int32_t int_bi fputs ("\nCan't allocate ANSi buffer image memory.\n\n", stderr); exit (6); } - int32_t colors[21]; + int32_t colors[16]; if (ced) { @@ -517,7 +517,6 @@ void ansi(char *input, char *output, char *retinaout, char *font, int32_t int_bi colors[13] = gdImageColorAllocate(im_ANSi, 255, 85, 255); colors[14] = gdImageColorAllocate(im_ANSi, 85, 255, 255); colors[15] = gdImageColorAllocate(im_ANSi, 255, 255, 255); - colors[20] = gdImageColorAllocate(im_ANSi, 200, 220, 169); background_canvas = gdImageColorAllocate(im_ANSi, 0, 0, 0); }