ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit ebeac51792eecc8b85fd73282a698a66abc67fe0
parent eae444731c7e39a06f1a1b20bb71f32ffdc2122c
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu, 10 Dec 2015 14:10:19 +0100

Group checks for CR + LF in the ANSi loader

Diffstat:
Msrc/ansilove.c | 14+++++---------
1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/ansilove.c b/src/ansilove.c @@ -315,16 +315,12 @@ void alAnsiLoader(char *input, char *output, char *retinaout, char *font, int32_ } // CR + LF - if (current_character == 13) - { - if (next_character == 10) - { - position_y++; - position_x = 0; - loop++; - } + if (current_character == 13 && next_character == 10) { + position_y++; + position_x = 0; + loop++; } - + // LF if (current_character == 10) {