libansilove

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

commit e6a201f682db143046aba89c33e71aa7b7ab8648
parent 5e4f236b0ac0a890eb8a1c98e8c7f179a20e59c6
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed, 12 Dec 2018 19:26:43 +0100

Various formatting fixes

Diffstat:
Msrc/fonts.c | 2--
Msrc/loaders/ansi.c | 9++++-----
2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/fonts.c b/src/fonts.c @@ -173,5 +173,3 @@ alSelectFont(struct fontStruct *fontData, int font) break; } } - - diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -47,7 +47,8 @@ struct ansiChar { uint8_t character; }; -int ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options) +int +ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options) { if (ctx == NULL || options == NULL) { if (ctx) @@ -330,16 +331,14 @@ int ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options) if (seqValue == 27) invert = false; - if (seqValue > 29 && seqValue < 38) - { + if (seqValue > 29 && seqValue < 38) { foreground = seqValue - 30; if (bold) foreground += 8; } - if (seqValue > 39 && seqValue < 48) - { + if (seqValue > 39 && seqValue < 48) { background = seqValue - 40; if (blink && options->icecolors)