minui: Fix gr_set_font() build issue on cm-13.0 tree.
- Add a fake function which fill the vendor/cm/charger/healthd_board_cm.cpp requirements.
Solve omnirom/android_bootable_recovery#84 issue.
Change-Id: Ia9bf898006da7e4f4ee6a942584fe2dd3c88f8ba
diff --git a/minui/graphics.cpp b/minui/graphics.cpp
index eceaeee..93b70da 100644
--- a/minui/graphics.cpp
+++ b/minui/graphics.cpp
@@ -545,3 +545,9 @@
{
gr_backend->blank(gr_backend, blank);
}
+
+void gr_set_font(__attribute__ ((unused))const char* name) {
+ //this cm function is made to change font. Don't care, just init the font:
+ gr_init_font();
+ return;
+}
diff --git a/minui/minui.h b/minui/minui.h
index 18173b1..098a041 100644
--- a/minui/minui.h
+++ b/minui/minui.h
@@ -51,6 +51,7 @@
void gr_texticon(int x, int y, GRSurface* icon);
int gr_measure(const char *s);
void gr_font_size(int *x, int *y);
+void gr_set_font(__attribute__ ((unused))const char* name);
void gr_blit(GRSurface* source, int sx, int sy, int w, int h, int dx, int dy);
unsigned int gr_get_width(GRSurface* surface);