diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2019-09-02 15:03:33 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2019-09-02 15:54:50 +0100 |
commit | 42a15b157827dbd9c981416c8919ce5f5c907331 (patch) | |
tree | 31786a1a4bf6e67beced6533b9eb276f8a8ce3d8 /src/canvas.h | |
parent | b8395af887ec1c3a3adfd8d56baa12caed740172 (diff) | |
download | imv-42a15b157827dbd9c981416c8919ce5f5c907331.tar.gz |
console: Use icu to provide proper UTF-8 editing
Diffstat (limited to 'src/canvas.h')
-rw-r--r-- | src/canvas.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |