ansilove

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

commit a22e72d1580ca1e4b221272b9799409e9e6cee4f
parent e1e4acd5487fda9f995293102370bbbee86c2099
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 16 Jan 2016 15:10:37 +0100

Since we are now plotting characters directly, we do not need to create font and background bitmaps anymore

Diffstat:
Msrc/ansilove.c | 20+-------------------
1 file changed, 1 insertion(+), 19 deletions(-)

diff --git a/src/ansilove.c b/src/ansilove.c @@ -725,25 +725,7 @@ void alAnsiLoader(char *input, char *output, char *retinaout, char *font, int32_ colors[loop] = gdImageColorAllocate(im_ANSi, Red, Green, Blue); } - - // reconstruct font bitmap from bitfonts data - int32_t j , k = 0; - - for (k=0;k<16;k++) - { - for (j=0;j<256;j++) - { - alDrawChar(im_Font, fontData.font_data, fontData.font_size_x, fontData.font_size_y, - j, k, 20, k, j); - } - } - - // reconstruct background bitmap - for (loop = 0; loop < 16; loop++) - { - gdImageFilledRectangle(im_Backgrnd, loop * 9, 0, loop * 9 + 9, 16, loop); - } - + // even more definitions, sigh int32_t ansiBufferItems = structIndex; int32_t loop_column;