aboutsummaryrefslogtreecommitdiff
path: root/src/canvas.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-09-02 15:03:33 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-09-02 15:54:50 +0100
commit42a15b157827dbd9c981416c8919ce5f5c907331 (patch)
tree31786a1a4bf6e67beced6533b9eb276f8a8ce3d8 /src/canvas.h
parentb8395af887ec1c3a3adfd8d56baa12caed740172 (diff)
downloadimv-42a15b157827dbd9c981416c8919ce5f5c907331.tar.gz
console: Use icu to provide proper UTF-8 editing
Diffstat (limited to 'src/canvas.h')
-rw-r--r--src/canvas.h4
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);