From 42a15b157827dbd9c981416c8919ce5f5c907331 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Mon, 2 Sep 2019 15:03:33 +0100 Subject: console: Use icu to provide proper UTF-8 editing --- src/canvas.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/canvas.h') diff --git a/src/canvas.h b/src/canvas.h index 4f520fe..03425d9 100644 --- a/src/canvas.h +++ b/src/canvas.h @@ -37,8 +37,8 @@ void imv_canvas_fill_checkers(struct imv_canvas *canvas, int size); /* Select the font to draw text with */ void imv_canvas_font(struct imv_canvas *canvas, const char *name, int size); -/* Draw some text on the canvas */ -void imv_canvas_printf(struct imv_canvas *canvas, int x, int y, const char *fmt, ...); +/* Draw some text on the canvas, returns the width used in pixels */ +int imv_canvas_printf(struct imv_canvas *canvas, int x, int y, const char *fmt, ...); /* Blit the canvas to the current OpenGL framebuffer */ void imv_canvas_draw(struct imv_canvas *canvas); -- cgit v1.2.3