libansilove

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

commit e7e99b4f3a71af916e106a1fa06af60796c2fd30
parent 5c6251184afa2ef004d31272ffa2ae1708c6754e
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 11 Sep 2018 23:11:28 +0200

Move ansilove_png struct declaration up, and change type of length to int

Diffstat:
Minclude/ansilove.h | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/ansilove.h b/include/ansilove.h @@ -21,15 +21,16 @@ #define MEMORY_ERROR 3 #define GD_ERROR 4 -struct ansilove_ctx { +struct ansilove_png { unsigned char *buffer; - size_t length; - int error; + int length; }; -struct ansilove_png { +struct ansilove_ctx { unsigned char *buffer; size_t length; + struct ansilove_png png; + int error; }; struct ansilove_options {