ansilove

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

commit d48deff15c6bebcaa2ca58b07ce9f53491743c7e
parent 21425093642966315d9d9696aff8aefb02b1d614
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 21 Jan 2016 12:37:08 +0100

Fixing regression in the Workbench mode rendering

Diffstat:
Msrc/loaders/ansi.c | 17+++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -475,21 +475,22 @@ void ansi(char *input, char *output, char *retinaout, char *font, int32_t int_bi else if (workbench) { gdImageFill(im_ANSi, 0, 0, 0); + colors[0] = gdImageColorAllocate(im_ANSi, 170, 170, 170); - colors[1] = gdImageColorAllocate(im_ANSi, 0, 0, 255); + colors[1] = gdImageColorAllocate(im_ANSi, 0, 0, 0); colors[2] = gdImageColorAllocate(im_ANSi, 255, 255, 255); - colors[3] = gdImageColorAllocate(im_ANSi, 0, 255, 255); - colors[4] = gdImageColorAllocate(im_ANSi, 0, 0, 0); + colors[3] = gdImageColorAllocate(im_ANSi, 102, 136, 187); + colors[4] = gdImageColorAllocate(im_ANSi, 0, 0, 255); colors[5] = gdImageColorAllocate(im_ANSi, 255, 0, 255); - colors[6] = gdImageColorAllocate(im_ANSi, 102, 136, 187); + colors[6] = gdImageColorAllocate(im_ANSi, 0, 255, 255); colors[7] = gdImageColorAllocate(im_ANSi, 255, 255, 255); colors[8] = gdImageColorAllocate(im_ANSi, 170, 170, 170); - colors[9] = gdImageColorAllocate(im_ANSi, 0, 0, 255); + colors[9] = gdImageColorAllocate(im_ANSi, 0, 0, 0); colors[10] = gdImageColorAllocate(im_ANSi, 255, 255, 255); - colors[11] = gdImageColorAllocate(im_ANSi, 0, 255, 255); - colors[12] = gdImageColorAllocate(im_ANSi, 0, 0, 0); + colors[11] = gdImageColorAllocate(im_ANSi, 102, 136, 187); + colors[12] = gdImageColorAllocate(im_ANSi, 0, 0, 255); colors[13] = gdImageColorAllocate(im_ANSi, 255, 0, 255); - colors[14] = gdImageColorAllocate(im_ANSi, 102, 136, 187); + colors[14] = gdImageColorAllocate(im_ANSi, 0, 255, 255); colors[15] = gdImageColorAllocate(im_ANSi, 255, 255, 255); }