libansilove

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

commit b5fe5aaec0c9e48f230abb52722ef536787b1cd0
parent 1b63b435d03afdc27f99ea3365da5d1e1bc2f033
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 29 Sep 2020 19:18:01 +0200

Remove an useless comparison in drawchar().

Diffstat:
Msrc/drawchar.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drawchar.c b/src/drawchar.c @@ -27,7 +27,7 @@ drawchar(gdImagePtr im, const uint8_t *font_data, uint32_t bits, for (y = 0; y < height; y++) { for (x = 0; x < bits; x++) { - if ((font_data[y+character*height] & (0x80 >> x)) != 0) { + if (font_data[y+character*height] & (0x80 >> x)) { gdImageSetPixel(im, column * bits + x, row*height + y, foreground);