ansilove

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

commit cdf16924a27c3216fa579cf75ea6a817e52a74da
parent 8cc680092d1a03dee6a113b243eac236e059e4f9
Author: Brian Cassidy <bricas@cpan.org>
Date:   Fri, 17 Feb 2012 11:16:38 -0400

xbin header

Diffstat:
Mansilove/ansilove.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ansilove/ansilove.c b/ansilove/ansilove.c @@ -2193,7 +2193,12 @@ void alXbinLoader(char *input, char output[], char bits[]) if (strcmp(strndup((char *)input_file_buffer, 5), "XBIN\x1a") != 0) { fputs("\nNot an XBin.\n\n", stderr); exit (4); } - + + int32_t xbin_width = (input_file_buffer[ 6 ] << 8) + input_file_buffer[ 5 ]; + int32_t xbin_height = (input_file_buffer[ 8 ] << 8) + input_file_buffer[ 7 ]; + int32_t xbin_fontsize = input_file_buffer[ 9 ]; + int32_t xbin_flags = input_file_buffer[ 10 ]; + fputs("\nXBin OK!\n\n", stderr); exit (0); }