summaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-18 02:43:45 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-18 02:43:45 (EDT)
commitc5da456687d8b51d8d2360cabc1966387ebc72b9 (patch)
tree23f97459ec1fcb4f4620e6985fa632e353e03a6f /src/font.c
parentf0351693ac1558505cf15c61c3ea4a1f12c3d67b (diff)
font_*(), text_*(), image_*(): Add const qualifiers
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/font.c b/src/font.c
index c351857..fb54604 100644
--- a/src/font.c
+++ b/src/font.c
@@ -65,19 +65,19 @@ font_find(const char *name)
}
int
-font_get_width(struct font *font)
+font_get_width(const struct font *font)
{
return font->desc.width;
}
int
-font_get_height(struct font *font)
+font_get_height(const struct font *font)
{
return font->desc.height;
}
void
-font_render(struct font *font, png_const_colorp fg, png_const_colorp bg,
+font_render(const struct font *font, png_const_colorp fg, png_const_colorp bg,
unsigned char ch, png_bytepp rows, int row, int col)
{
size_t y;