Skip to content

Commit 198007d

Browse files
committed
fixed solosky#242: not set correct font when toast draw message
1 parent 9d02de1 commit 198007d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fw/application/src/mui/view/mui_toast_view.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ static void mui_toast_timer_handler(void *p_context) {
1919
static void mui_toast_view_on_draw(mui_view_t *p_view, mui_canvas_t *p_canvas) {
2020
mui_toast_view_t *p_toast_view = (mui_toast_view_t *)p_view->user_data;
2121
const char *msg = string_get_cstr(p_toast_view->message);
22+
mui_canvas_set_font(p_canvas, u8g2_font_wqy12_t_gb2312a);
2223
if (p_toast_view->is_visible && string_size(p_toast_view->message) > 0) {
2324
uint8_t mw = mui_canvas_get_width(p_canvas) - 16;
2425
uint8_t th = mui_element_text_height(p_canvas, mw, msg);

0 commit comments

Comments
 (0)