diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 19:45:29 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 19:45:29 (EDT) |
commit | 6f9fa656730b61384908e8ddbd11825eae3a92b9 (patch) | |
tree | cec556e492aac36ffde7832525da814481784f76 /src | |
parent | 373c9218245263fe986f4b93ef62cfa9af6c644b (diff) |
Don't use libpng's pointer typedefs
Pointers should be as obvious as possible.
Diffstat (limited to 'src')
-rw-r--r-- | src/font.c | 2 | ||||
-rw-r--r-- | src/font.h | 2 | ||||
-rw-r--r-- | src/image.c | 2 | ||||
-rw-r--r-- | src/text.c | 2 | ||||
-rw-r--r-- | src/text.h | 2 |
5 files changed, 5 insertions, 5 deletions
@@ -116,7 +116,7 @@ font_get_height(const struct font *font) void font_render(const struct font *font, png_const_colorp fg, png_const_colorp bg, - unsigned char ch, png_bytepp rows, int row, int col) + unsigned char ch, png_byte **rows, int row, int col) { size_t y; size_t r; @@ -45,6 +45,6 @@ font_get_height(const struct font *font) __attribute__((pure)); void font_render(const struct font *font, png_const_colorp fg, png_const_colorp bg, - unsigned char ch, png_bytepp rows, int row, int col); + unsigned char ch, png_byte **rows, int row, int col); #endif /* FONT_H_ */ diff --git a/src/image.c b/src/image.c index 626ffa7..a794d16 100644 --- a/src/image.c +++ b/src/image.c @@ -87,7 +87,7 @@ image_render(struct image *image, const struct text *text, { size_t width; size_t height; - png_bytepp rows; + png_byte **rows; size_t i; assert(image); @@ -150,7 +150,7 @@ text_set_height(struct text *text, size_t height) } void -text_render(const struct text *text, const struct font *font, png_bytepp rows) +text_render(const struct text *text, const struct font *font, png_byte **rows) { unsigned char *string_start; unsigned char *string; @@ -46,7 +46,7 @@ size_t text_set_height(struct text *text, size_t height); void -text_render(const struct text *text, const struct font *font, png_bytepp rows); +text_render(const struct text *text, const struct font *font, png_byte **rows); struct text * text_destroy(struct text **text_p); |