ansilove

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

commit 34b1eae8c9c3854c4b48973f2e9857ac75cf1f06
parent 21f2d8aa8d57a62446e08c09fcb0ef2d383b79d7
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Wed,  7 Mar 2012 21:57:11 +0100

Resetting ansi buffer when 2J sequence is encountered

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

diff --git a/ansilove/ansilove.c b/ansilove/ansilove.c @@ -545,14 +545,10 @@ void alAnsiLoader(char *input, char output[], char font[], char bits[], char ice position_x_max=0; position_y_max=0; - /* - * - * /!\ PLACEHOLDER : Code to reinitialize the Ansi Buffer - * /!\ PLACEHOLDER : Code to reinitialize the Ansi Buffer - * /!\ PLACEHOLDER : Code to reinitialize the Ansi Buffer - * /!\ PLACEHOLDER : Code to reinitialize the Ansi Buffer - * - */ + // reset ansi buffer + free(ansi_buffer); + ansi_buffer = malloc(sizeof(struct ansiChar)); + structIndex=0; } loop+=ansi_sequence_loop+2;