Skip to content

Commit

Permalink
Batt/clock are blue again
Browse files Browse the repository at this point in the history
  • Loading branch information
myfluxi committed Apr 23, 2012
1 parent cca0cff commit 0a48491
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,15 @@ static void draw_screen_locked(void)
current = localtime(&now);

char batt_text[40];
sprintf(batt_text, "[%d%% %02D:%02D]", batt_level, current->tm_hour, current->tm_min);
sprintf(batt_text, "[%d%% %02D:%02D]", batt_level, current->tm_hour, current->tm_min);

if (now == NULL) { // just in case
sprintf(batt_text, "[%d%%]", batt_level);
}

gr_color(HEADER_TEXT_COLOR);
gr_color(MENU_TEXT_COLOR);
draw_text_line(0, batt_text, RIGHT_ALIGN);

gr_color(MENU_TEXT_COLOR);
gr_fill(0, (menu_top + menu_sel - menu_show_start) * CHAR_HEIGHT,
gr_fb_width(), (menu_top + menu_sel - menu_show_start + 1)*CHAR_HEIGHT+1);

Expand Down

0 comments on commit 0a48491

Please sign in to comment.