ansilove

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

commit f07ed47072fec21c0ae753bda0782b78e7a7163c
parent cd5076feccedd13787efa58955744da8803fc24e
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 16 Jan 2016 18:15:26 +0100

Moving ANSI and PCBoard character structures to their respective loader headers

Diffstat:
Msrc/ansi.c | 1+
Msrc/ansi.h | 12++++++++++++
Msrc/ansilove.h | 20--------------------
Msrc/pcboard.c | 1+
Msrc/pcboard.h | 9+++++++++
5 files changed, 23 insertions(+), 20 deletions(-)

diff --git a/src/ansi.c b/src/ansi.c @@ -10,6 +10,7 @@ // #include "ansilove.h" +#include "ansi.h" void alAnsiLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, char *mode, bool icecolors, char *fext, bool createRetinaRep) { diff --git a/src/ansi.h b/src/ansi.h @@ -12,6 +12,18 @@ #ifndef ansi_h #define ansi_h +// Character structure +struct ansiChar { + int32_t position_x; + int32_t position_y; + int32_t color_background; + int32_t color_foreground; + int32_t current_character; + bool bold; + bool italics; + bool underline; +}; + void alAnsiLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, char *mode, bool icecolors, char *fext, bool createRetinaRep); #endif diff --git a/src/ansilove.h b/src/ansilove.h @@ -32,24 +32,4 @@ void alDrawChar(gdImagePtr im, const unsigned char *font_data, int32_t int_bits, int32_t font_size_y, int32_t position_x, int32_t position_y, int32_t color_background, int32_t color_foreground, unsigned char character); -// character structures -struct pcbChar { - int32_t position_x; - int32_t position_y; - int32_t color_background; - int32_t color_foreground; - int32_t current_character; -}; - -struct ansiChar { - int32_t position_x; - int32_t position_y; - int32_t color_background; - int32_t color_foreground; - int32_t current_character; - bool bold; - bool italics; - bool underline; -}; - #endif diff --git a/src/pcboard.c b/src/pcboard.c @@ -10,6 +10,7 @@ // #include "ansilove.h" +#include "pcboard.h" void alPcBoardLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool createRetinaRep) { diff --git a/src/pcboard.h b/src/pcboard.h @@ -12,6 +12,15 @@ #ifndef pcboard_h #define pcboard_h +// Character structure +struct pcbChar { + int32_t position_x; + int32_t position_y; + int32_t color_background; + int32_t color_foreground; + int32_t current_character; +}; + void alPcBoardLoader(char *input, char *output, char *retinaout, char *font, int32_t int_bits, bool createRetinaRep); #endif