aboutsummaryrefslogtreecommitdiffstats
path: root/minui/graphics.c
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-08-30 11:58:24 -0700
committerDima Zavin <dima@android.com>2011-08-30 11:58:24 -0700
commit3c7f00ede67113e0de6da214caa6c99ce8eab95c (patch)
treef5af9b467cc38f04c25a70892c381f1ac0341917 /minui/graphics.c
parentc2ddaea83a75bf324ab729aa2b66036680eedb2c (diff)
downloadbootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.tar.gz
bootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.tar.bz2
bootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.zip
minui: graphics: add ability to query font size
Change-Id: I5e8f477b7b205794f2975f12e6b6010c177f6052 Signed-off-by: Dima Zavin <dima@android.com>
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 b79631a..57ca810 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;