commit 891a5538f0812fb381adc0a3b3b498b28b32374b
parent d0a641b935ed84ea11b255d3d42393432870dee4
Author: Frederic Cambus <fred@statdns.com>
Date: Sat, 16 Jan 2016 16:21:40 +0100
Pruning more legacy color allocation
Diffstat:
1 file changed, 0 insertions(+), 13 deletions(-)
diff --git a/src/ansilove.c b/src/ansilove.c
@@ -699,19 +699,6 @@ void alAnsiLoader(char *input, char *output, char *retinaout, char *font, int32_
background_canvas = gdImageColorAllocate(im_ANSi, 0, 0, 0);
}
-
- // color array and RGB definitions
- int32_t Red, Green, Blue;
-
- // generating ANSi colors array in order to draw underlines
- for (loop = 0; loop < 16; loop++)
- {
- Red = gdImageRed(im_Backgrnd, loop);
- Green = gdImageGreen(im_Backgrnd, loop);
- Blue = gdImageBlue(im_Backgrnd, loop);
-
- colors[loop] = gdImageColorAllocate(im_ANSi, Red, Green, Blue);
- }
// even more definitions, sigh
int32_t ansiBufferItems = structIndex;