libansilove

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

commit 9f1e2fc2b64edbc71e858c5c55ce7049a975bd8f
parent 424c7adfb4bde415e35cef4377d366381f145a72
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 15 Nov 2018 11:35:37 +0100

Actually use macro values for characters

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

diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -129,16 +129,16 @@ int ansilove_ansi(struct ansilove_ctx *ctx, struct ansilove_options *options) } switch (current_character) { - case 10: + case LF: row++; column = 0; break; - case 13: + case CR: break; - case 9: + case TAB: column += 8; break; - case 26: + case SUB: loop = ctx->length; break; case 27: /* ANSi sequence */