libansilove

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

commit 0bed25bf820d2a3ef7510d6fd90b3a51105fef33
parent f816954be1d8e08fa3f5f524d017517c70760905
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 20 Jan 2020 01:02:13 +0100

Small formatting tweaks.

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

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -317,8 +317,7 @@ ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options) foreground24 = 0; } - if (seqValue == 5) - { + if (seqValue == 5) { if (!workbench && options->icecolors) background += 8; @@ -439,8 +438,7 @@ ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options) if (invert) { ansi_buffer[structIndex].background = foreground % 8; ansi_buffer[structIndex].foreground = background + (foreground & 8); - } - else { + } else { if (background24) ansi_buffer[structIndex].background = background24; else