summaryrefslogtreecommitdiffstats
path: root/minui/include
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-06-01 03:16:28 +0200
committerTianjie Xu <xunchang@google.com>2018-06-01 06:42:58 +0200
commit842f2a3dca26cb6e91ef531d363d8f68c0f2f5ab (patch)
tree59dd3456f9fbb431445b0adc6001db7d9d7d6672 /minui/include
parentMerge "updater: Drop the 'blocks' parameter in LoadStash()." (diff)
downloadandroid_bootable_recovery-842f2a3dca26cb6e91ef531d363d8f68c0f2f5ab.tar
android_bootable_recovery-842f2a3dca26cb6e91ef531d363d8f68c0f2f5ab.tar.gz
android_bootable_recovery-842f2a3dca26cb6e91ef531d363d8f68c0f2f5ab.tar.bz2
android_bootable_recovery-842f2a3dca26cb6e91ef531d363d8f68c0f2f5ab.tar.lz
android_bootable_recovery-842f2a3dca26cb6e91ef531d363d8f68c0f2f5ab.tar.xz
android_bootable_recovery-842f2a3dca26cb6e91ef531d363d8f68c0f2f5ab.tar.zst
android_bootable_recovery-842f2a3dca26cb6e91ef531d363d8f68c0f2f5ab.zip
Diffstat (limited to 'minui/include')
-rw-r--r--minui/include/minui/minui.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/minui/include/minui/minui.h b/minui/include/minui/minui.h
index f9da19999..e96b7ae08 100644
--- a/minui/include/minui/minui.h
+++ b/minui/include/minui/minui.h
@@ -66,8 +66,10 @@ void gr_texticon(int x, int y, GRSurface* icon);
const GRFont* gr_sys_font();
int gr_init_font(const char* name, GRFont** dest);
void gr_text(const GRFont* font, int x, int y, const char* s, bool bold);
+// Return -1 if font is nullptr.
int gr_measure(const GRFont* font, const char* s);
-void gr_font_size(const GRFont* font, int* x, int* y);
+// Return -1 if font is nullptr.
+int gr_font_size(const GRFont* font, int* x, int* y);
void gr_blit(GRSurface* source, int sx, int sy, int w, int h, int dx, int dy);
unsigned int gr_get_width(GRSurface* surface);