Skip to content
Permalink
Browse files

Revert "minui: Match API to AOSP"

 * Breaks every device because of their deprecated graphics.c overloads.
 * Revert until we clean this mess up.

This reverts commit 48ccdce.
  • Loading branch information
cyanogen committed Oct 22, 2013
1 parent 388e6a7 commit 2457cc01c709abcf7835799d7737ca51b6485cab
Showing with 3 additions and 3 deletions.
  1. +1 −1 minui/graphics.c
  2. +1 −1 minui/minui.h
  3. +1 −1 ui.c
@@ -229,7 +229,7 @@ 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)
{
GGLContext *gl = gr_context;
GRFont *font = gr_font;
@@ -33,7 +33,7 @@ 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);
int gr_text(int x, int y, const char *s);
int gr_measure(const char *s);
void gr_font_size(int *x, int *y);

2 ui.c
@@ -238,7 +238,7 @@ static void draw_progress_locked()
static void draw_text_line(int row, const char* t) {
if (t[0] != '\0') {
if (ui_get_rainbow_mode()) ui_rainbow_mode();
gr_text(0, (row+1)*CHAR_HEIGHT-1, t, 0);
gr_text(0, (row+1)*CHAR_HEIGHT-1, t);
}
}

0 comments on commit 2457cc0

Please sign in to comment.
You can’t perform that action at this time.