liblog: add __android_log_close() am: c68706fe49 am: edc5507f76 am: 85b0dd64f1 -s ours am: ef661e0a6d am: 1b6b34717a am: edbf5d59f0 am: 1b9ae6eae6 am: cfea0949a4 am: 87f09ae506 am: c1197f5b67 am: f3af4388fb am: 356988f1d7 am: b8218ee845
am: 9f8d3d32cf
Change-Id: I3102b0d619483eb3bf7c267f6bac21d0fbcc6174
diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp
index 5846626..66f9271 100644
--- a/healthd/healthd_mode_charger.cpp
+++ b/healthd/healthd_mode_charger.cpp
@@ -257,13 +257,13 @@
static int draw_text(const char *str, int x, int y)
{
- int str_len_px = gr_measure(str);
+ int str_len_px = gr_measure(gr_sys_font(), str);
if (x < 0)
x = (gr_fb_width() - str_len_px) / 2;
if (y < 0)
y = (gr_fb_height() - char_height) / 2;
- gr_text(x, y, str, 0);
+ gr_text(gr_sys_font(), x, y, str, 0);
return y + char_height;
}
@@ -364,7 +364,7 @@
}
gr_init();
- gr_font_size(&char_width, &char_height);
+ gr_font_size(gr_sys_font(), &char_width, &char_height);
#ifndef CHARGER_DISABLE_INIT_BLANK
gr_fb_blank(true);