Merge "Hack-fix build with different system/core/charger versions" into twrp2.7
This commit is contained in:
+6
-1
@@ -223,7 +223,12 @@ void gr_font_size(int *x, int *y)
|
||||
*y = gr_font->cheight;
|
||||
}
|
||||
|
||||
int gr_text(int x, int y, const char *s, int bold)
|
||||
int gr_text(int x, int y, const char *s, ...)
|
||||
{
|
||||
return gr_text_impl(x, y, s, 0);
|
||||
}
|
||||
|
||||
int gr_text_impl(int x, int y, const char *s, int bold)
|
||||
{
|
||||
GGLContext *gl = gr_context;
|
||||
GRFont *font = gr_font;
|
||||
|
||||
+6
-1
@@ -37,7 +37,12 @@ void gr_fb_blank(bool blank);
|
||||
|
||||
void gr_color(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
|
||||
void gr_fill(int x1, int y1, int x2, int y2);
|
||||
int gr_text(int x, int y, const char *s, int bold);
|
||||
|
||||
// system/core/charger uses different gr_print signatures in diferent
|
||||
// Android versions, either with or without int bold.
|
||||
int gr_text(int x, int y, const char *s, ...);
|
||||
int gr_text_impl(int x, int y, const char *s, int bold);
|
||||
|
||||
void gr_texticon(int x, int y, gr_surface icon);
|
||||
int gr_measure(const char *s);
|
||||
void gr_font_size(int *x, int *y);
|
||||
|
||||
Reference in New Issue
Block a user