libansilove

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

commit 6403aaaa5091a8b664331b2c79eab41f0a470602
parent eb5b9829d587f5aa28ef005b3f5a5c39e292982f
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 24 Sep 2020 10:05:45 +0200

Remove a few useless parentheses in the code setting color palettes.

Diffstat:
Msrc/loaders/xbin.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/loaders/xbin.c b/src/loaders/xbin.c @@ -85,9 +85,9 @@ ansilove_xbin(struct ansilove_ctx *ctx, struct ansilove_options *options) index = (loop * 3) + offset; colors[loop] = gdImageColorAllocate(canvas, - (ctx->buffer[index] << 2 | ctx->buffer[index] >> 4), - (ctx->buffer[index + 1] << 2 | ctx->buffer[index + 1] >> 4), - (ctx->buffer[index + 2] << 2 | ctx->buffer[index + 2] >> 4)); + ctx->buffer[index] << 2 | ctx->buffer[index] >> 4, + ctx->buffer[index + 1] << 2 | ctx->buffer[index + 1] >> 4, + ctx->buffer[index + 2] << 2 | ctx->buffer[index + 2] >> 4); } offset += XBIN_PALETTE_LENGTH;