commit 59678ee9b3585e427fdeb6171dbec2eab2c81b99
parent ab82a9df2192a67fbb578a1845d1ddfa06dd4420
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 28 Sep 2020 17:59:06 +0200
Remove a few useless parentheses in the code setting color palettes.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/loaders/icedraw.c b/src/loaders/icedraw.c
@@ -107,9 +107,9 @@ ansilove_icedraw(struct ansilove_ctx *ctx, struct ansilove_options *options)
for (loop = 0; loop < 16; loop++) {
index = (loop * 3) + ctx->length - IDF_PALETTE_LENGTH;
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);
}
/* render IDF */