Skip to content

Commit

Permalink
Merge pull request #417 from sijskes/p1
Browse files Browse the repository at this point in the history
fixed font restore
  • Loading branch information
sijskes committed Oct 1, 2016
2 parents 67d6af8 + 81e7106 commit f62053f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions applet/src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ void draw_alt_statusline()

wide_sprintf(buf,"" );
gfx_chars_to_display(buf,95,96,157);

gfx_set_fg_color(0);
gfx_set_bg_color(0xff000000);
gfx_select_font(gfx_font_norm);
}

void draw_datetime_row_hook()
Expand Down
4 changes: 4 additions & 0 deletions applet/src/gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ void gfx_chars_to_display_hook(wchar_t *str, int x, int y, int xlen);

// if larger than maxstrlen end in ".."
void gfx_drawtext4(wchar_t *str, int x, int y, int xlen, int maxstrlen);

extern uint32_t gfx_font_small[];
extern uint32_t gfx_font_norm[];

3 changes: 0 additions & 3 deletions applet/src/md380.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ void gfx_drawtext2(wchar_t *str, //16-bit, little endian.
extern void gfx_chars_to_display(wchar_t *str, int x, int y, int xlen);


extern uint32_t gfx_font_small[];
extern uint32_t gfx_font_norm[];


void gfx_set_bg_color(int color);
void gfx_set_fg_color(int color);
Expand Down

0 comments on commit f62053f

Please sign in to comment.