Skip to content

Commit c45b2d5

Browse files
nailyk-frDees-Troy
authored andcommitted
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
1 parent 6c28ee8 commit c45b2d5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

minui/graphics.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,3 +545,9 @@ void gr_fb_blank(bool blank)
545545
{
546546
gr_backend->blank(gr_backend, blank);
547547
}
548+
549+
void gr_set_font(__attribute__ ((unused))const char* name) {
550+
//this cm function is made to change font. Don't care, just init the font:
551+
gr_init_font();
552+
return;
553+
}

minui/minui.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ void gr_text(int x, int y, const char *s, bool bold);
5151
void gr_texticon(int x, int y, GRSurface* icon);
5252
int gr_measure(const char *s);
5353
void gr_font_size(int *x, int *y);
54+
void gr_set_font(__attribute__ ((unused))const char* name);
5455

5556
void gr_blit(GRSurface* source, int sx, int sy, int w, int h, int dx, int dy);
5657
unsigned int gr_get_width(GRSurface* surface);

0 commit comments

Comments
 (0)