summaryrefslogtreecommitdiffstats
path: root/src/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text.c b/src/text.c
index fedbd3f..995d10e 100644
--- a/src/text.c
+++ b/src/text.c
@@ -105,13 +105,13 @@ text_new(FILE *stream)
}
size_t
-text_get_width(struct text *text)
+text_get_width(const struct text *text)
{
return text->width;
}
size_t
-text_get_height(struct text *text)
+text_get_height(const struct text *text)
{
return text->height;
}
@@ -129,7 +129,7 @@ text_set_height(struct text *text, size_t height)
}
void
-text_render(struct text *text, struct font *font, png_bytepp rows)
+text_render(const struct text *text, const struct font *font, png_bytepp rows)
{
unsigned char *string_start;
unsigned char *string;