summaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-08-30 20:58:24 +0200
committerDima Zavin <dima@android.com>2011-08-30 20:58:24 +0200
commit3c7f00ede67113e0de6da214caa6c99ce8eab95c (patch)
treef5af9b467cc38f04c25a70892c381f1ac0341917 /minui
parentchange recovery images to match blue holo theme (diff)
downloadandroid_bootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.tar
android_bootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.tar.gz
android_bootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.tar.bz2
android_bootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.tar.lz
android_bootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.tar.xz
android_bootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.tar.zst
android_bootable_recovery-3c7f00ede67113e0de6da214caa6c99ce8eab95c.zip
Diffstat (limited to '')
-rw-r--r--minui/graphics.c6
-rw-r--r--minui/minui.h1
2 files changed, 7 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;
diff --git a/minui/minui.h b/minui/minui.h
index 567d42157..5496b0903 100644
--- a/minui/minui.h
+++ b/minui/minui.h
@@ -32,6 +32,7 @@ void gr_color(unsigned char r, unsigned char g, unsigned char b, unsigned char a
void gr_fill(int x, int y, int w, int h);
int gr_text(int x, int y, const char *s);
int gr_measure(const char *s);
+void gr_font_size(int *x, int *y);
void gr_blit(gr_surface source, int sx, int sy, int w, int h, int dx, int dy);
unsigned int gr_get_width(gr_surface surface);