ansilove

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

commit aaf5dab245f9ac7b126a369be4798b4966b904b8
parent 83b962666b3397a553366a573143478777d2e87b
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu, 31 Dec 2015 16:25:13 +0100

Removing unused colors array in the ADF loader

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

diff --git a/src/ansilove.c b/src/ansilove.c @@ -1427,7 +1427,6 @@ void alArtworxLoader(char *input, char *output, char *retinaout, bool createReti int32_t loop; int32_t index; - int32_t colors[16]; // process ADF font font_data_adf = (unsigned char *) malloc(sizeof(unsigned char)*4096); @@ -1442,7 +1441,7 @@ void alArtworxLoader(char *input, char *output, char *retinaout, bool createReti for (loop = 0; loop < 16; loop++) { index = (adf_colors[loop] * 3) + 1; - colors[loop] = gdImageColorAllocate(im_ADF, (input_file_buffer[index] << 2 | input_file_buffer[index] >> 4), + gdImageColorAllocate(im_ADF, (input_file_buffer[index] << 2 | input_file_buffer[index] >> 4), (input_file_buffer[index + 1] << 2 | input_file_buffer[index + 1] >> 4), (input_file_buffer[index + 2] << 2 | input_file_buffer[index + 2] >> 4)); }