libansilove

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

commit 3ca62e6e5cb024ddd89c3520009557474c2c3265
parent ecdd52e729507f6b5943ff45e65e606eeb6b77db
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  7 Jun 2019 14:56:19 +0200

Remove superfluous background color allocations in the Binary and PCBoard loaders.

Diffstat:
Msrc/loaders/binary.c | 3---
Msrc/loaders/pcboard.c | 4----
2 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/loaders/binary.c b/src/loaders/binary.c @@ -49,9 +49,6 @@ ansilove_binary(struct ansilove_ctx *ctx, struct ansilove_options *options) return -1; } - /* allocate black color */ - gdImageColorAllocate(canvas, 0, 0, 0); - /* allocate color palette */ uint32_t colors[16]; diff --git a/src/loaders/pcboard.c b/src/loaders/pcboard.c @@ -167,10 +167,6 @@ ansilove_pcboard(struct ansilove_ctx *ctx, struct ansilove_options *options) return -1; } - /* allocate black color and create background canvas */ - gdImageColorAllocate(canvas, 0, 0, 0); - gdImageFill(canvas, 0, 0, 0); - /* allocate color palette */ uint32_t colors[16];