diff options
Diffstat (limited to 'src/graphics/font.c')
-rw-r--r-- | src/graphics/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/font.c b/src/graphics/font.c index f55144a..669c2ac 100644 --- a/src/graphics/font.c +++ b/src/graphics/font.c @@ -111,7 +111,7 @@ void mgl_font_unload(mgl_font *self) { self->num_packed_chars = 0; } -int mgl_font_get_glyph(mgl_font *self, uint32_t codepoint, mgl_font_glyph *glyph) { +int mgl_font_get_glyph(const mgl_font *self, uint32_t codepoint, mgl_font_glyph *glyph) { stbtt_packedchar *packed_chars = self->packed_chars; if(codepoint >= self->num_packed_chars) return -1; |