ansilove

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

commit 7f37a100cbda5568da6b4aaa1b00c212fe03c66e
parent b9ddd741c44ebafb5c6ad46446294df82dea5f18
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 18 Apr 2017 22:17:05 +0200

Rename alDrawChar function to drawchar

Diffstat:
Msrc/ansilove.c | 2+-
Msrc/ansilove.h | 2+-
Msrc/loaders/ansi.c | 4++--
Msrc/loaders/artworx.c | 2+-
Msrc/loaders/binary.c | 2+-
Msrc/loaders/icedraw.c | 2+-
Msrc/loaders/pcboard.c | 2+-
Msrc/loaders/tundra.c | 2+-
Msrc/loaders/xbin.c | 4++--
9 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/ansilove.c b/src/ansilove.c @@ -12,7 +12,7 @@ #include "ansilove.h" // shared method for drawing characters -void alDrawChar(gdImagePtr im, const unsigned char *font_data, int32_t bits, +void drawchar(gdImagePtr im, const unsigned char *font_data, int32_t bits, int32_t height, int32_t position_x, int32_t position_y, int32_t background, int32_t foreground, unsigned char character) { diff --git a/src/ansilove.h b/src/ansilove.h @@ -30,7 +30,7 @@ #define ansilove_h // prototypes -void alDrawChar(gdImagePtr im, const unsigned char *font_data, int32_t bits, +void drawchar(gdImagePtr im, const unsigned char *font_data, int32_t bits, int32_t height, int32_t position_x, int32_t position_y, int32_t background, int32_t foreground, unsigned char character); diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -496,10 +496,10 @@ void ansi(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFil position_y = ansi_buffer[loop].position_y; if (ced) { - alDrawChar(canvas, fontData.font_data, bits, fontData.height, + drawchar(canvas, fontData.font_data, bits, fontData.height, position_x, position_y, ced_background, ced_foreground, character); } else { - alDrawChar(canvas, fontData.font_data, bits, fontData.height, + drawchar(canvas, fontData.font_data, bits, fontData.height, position_x, position_y, colors[background], colors[foreground], character); } diff --git a/src/loaders/artworx.c b/src/loaders/artworx.c @@ -74,7 +74,7 @@ void artworx(unsigned char *inputFileBuffer, int32_t inputFileSize, char *output background = (attribute & 240) >> 4; foreground = attribute & 15; - alDrawChar(canvas, font_data, 8, 16, position_x, position_y, background, foreground, character); + drawchar(canvas, font_data, 8, 16, position_x, position_y, background, foreground, character); position_x++; loop+=2; diff --git a/src/loaders/binary.c b/src/loaders/binary.c @@ -77,7 +77,7 @@ void binary(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputF background -= 8; } - alDrawChar(canvas, fontData.font_data, bits, fontData.height, + drawchar(canvas, fontData.font_data, bits, fontData.height, position_x, position_y, colors[background], colors[foreground], character); position_x++; diff --git a/src/loaders/icedraw.c b/src/loaders/icedraw.c @@ -131,7 +131,7 @@ void icedraw(unsigned char *inputFileBuffer, int32_t inputFileSize, char *output background = (attribute & 240) >> 4; foreground = attribute & 15; - alDrawChar(canvas, font_data, 8, 16, position_x, position_y, colors[background], colors[foreground], character); + drawchar(canvas, font_data, 8, 16, position_x, position_y, colors[background], colors[foreground], character); position_x++; } diff --git a/src/loaders/pcboard.c b/src/loaders/pcboard.c @@ -183,7 +183,7 @@ void pcboard(unsigned char *inputFileBuffer, int32_t inputFileSize, char *output foreground = pcboard_buffer[loop].foreground; character = pcboard_buffer[loop].current_character; - alDrawChar(canvas, fontData.font_data, bits, fontData.height, + drawchar(canvas, fontData.font_data, bits, fontData.height, position_x, position_y, colors[background], colors[foreground], character); } diff --git a/src/loaders/tundra.c b/src/loaders/tundra.c @@ -169,7 +169,7 @@ void tundra(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputF if (character !=1 && character !=2 && character !=4 && character !=6) { - alDrawChar(canvas, fontData.font_data, bits, fontData.height, + drawchar(canvas, fontData.font_data, bits, fontData.height, position_x, position_y, background, foreground, character); position_x++; diff --git a/src/loaders/xbin.c b/src/loaders/xbin.c @@ -150,7 +150,7 @@ void xbin(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFil background = (attribute & 240) >> 4; foreground = attribute & 15; - alDrawChar(canvas, font_data, 8, 16, position_x, position_y, colors[background], colors[foreground], character); + drawchar(canvas, font_data, 8, 16, position_x, position_y, colors[background], colors[foreground], character); position_x++; @@ -178,7 +178,7 @@ void xbin(unsigned char *inputFileBuffer, int32_t inputFileSize, char *outputFil background = (attribute & 240) >> 4; foreground = attribute & 15; - alDrawChar(canvas, font_data, 8, xbin_fontsize, position_x, position_y, colors[background], colors[foreground], character); + drawchar(canvas, font_data, 8, xbin_fontsize, position_x, position_y, colors[background], colors[foreground], character); position_x++; offset+=2;