summaryrefslogtreecommitdiffstats
path: root/minui/graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'minui/graphics.c')
-rw-r--r--minui/graphics.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/minui/graphics.c b/minui/graphics.c
index b79631a31..57ca810f0 100644
--- a/minui/graphics.c
+++ b/minui/graphics.c
@@ -201,6 +201,12 @@ int gr_measure(const char *s)
return gr_font->cwidth * strlen(s);
}
+void gr_font_size(int *x, int *y)
+{
+ *x = gr_font->cwidth;
+ *y = gr_font->cheight;
+}
+
int gr_text(int x, int y, const char *s)
{
GGLContext *gl = gr_context;