libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit bf0b59e2712e3b2ba7417289edeccee65419a8c8
parent e9a2c60909ff80d6f6cf02d25ee341f1ddf72223
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat,  6 Jun 2020 08:05:59 +0200

Remove unneeded gdImageFill() call when using Workbench mode.

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

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -489,8 +489,6 @@ ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options) ced_foreground = gdImageColorAllocate(canvas, 0, 0, 0); gdImageFill(canvas, 0, 0, ced_background); } else if (workbench) { - gdImageFill(canvas, 0, 0, 0); - for (size_t i = 0; i < 16; i++) colors[i] = gdImageColorAllocate(canvas, workbench_palette[i*3], workbench_palette[i*3+1],