diff options
Diffstat (limited to 'teensy')
| -rw-r--r-- | teensy/teensy.h | 2 | ||||
| -rw-r--r-- | teensy/teensy_renderer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/teensy/teensy.h b/teensy/teensy.h index 0e36a6e..2e172c1 100644 --- a/teensy/teensy.h +++ b/teensy/teensy.h @@ -136,7 +136,7 @@ void ty_img_set_pixel( ); void ty_font_add_glyph(ty_Font *font, uint8_t c, ty_Image img); -int ty_font_width(ty_Font *font, const char *fmt, ...); +int ty_font_width(const ty_Font *font, const char *fmt, ...); // Pass NULL to restore the screen. void ty_draw_set_target(const ty_Image *img); diff --git a/teensy/teensy_renderer.c b/teensy/teensy_renderer.c index 1e24248..61710a2 100644 --- a/teensy/teensy_renderer.c +++ b/teensy/teensy_renderer.c @@ -103,7 +103,7 @@ void ty_font_add_glyph(ty_Font *font, uint8_t c, ty_Image img) font->glyphs[c] = img; } -int ty_font_width(ty_Font *font, const char *fmt, ...) +int ty_font_width(const ty_Font *font, const char *fmt, ...) { va_list args; va_start(args, fmt); |
