libansilove

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

commit 798e65ff05f3568ff95e507d3cb2243dc34fd70d
parent c9a91db1e21bb656e2f4bc34b17e30c543b24007
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed,  4 Jul 2018 09:55:38 +0200

Use uint32_t everywhere in drawchar()

Diffstat:
Msrc/drawchar.c | 8++++----
Msrc/drawchar.h | 6+++---
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/drawchar.c b/src/drawchar.c @@ -12,10 +12,10 @@ #include <gd.h> // shared method for drawing characters -void drawchar(gdImagePtr im, const unsigned char *font_data, int32_t bits, - int32_t height, int32_t column, int32_t row, - int32_t background, int32_t foreground, unsigned char character) { - int32_t x, y; +void drawchar(gdImagePtr im, const unsigned char *font_data, uint32_t bits, + uint32_t height, uint32_t column, uint32_t row, + uint32_t background, uint32_t foreground, unsigned char character) { + uint32_t x, y; gdImageFilledRectangle(im, column * bits, row*height, column * bits + bits - 1, row * height + height - 1, background); diff --git a/src/drawchar.h b/src/drawchar.h @@ -17,8 +17,8 @@ #define drawchar_h // prototypes -void drawchar(gdImagePtr im, const unsigned char *font_data, int32_t bits, - int32_t height, int32_t column, int32_t row, - int32_t background, int32_t foreground, unsigned char character); +void drawchar(gdImagePtr im, const unsigned char *font_data, uint32_t bits, + uint32_t height, uint32_t column, uint32_t row, + uint32_t background, uint32_t foreground, unsigned char character); #endif