ansilove

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

commit c96292645ca04ddadd18729f7e8dc19ff75746f5
parent c54eccb5111c25efcc164c2fc08af3e98c352fee
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Thu, 10 Dec 2015 19:28:13 +0100

Group checks for CR + LF in the PCBoard loader

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

diff --git a/src/ansilove.c b/src/ansilove.c @@ -1083,14 +1083,10 @@ void alPcBoardLoader(char *input, char *output, char *retinaout, char *font, int } // 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