Browse Source

Fix MKS UI missing font select condition (#21905)

Moonglow 3 years ago
parent
commit
376f0be5da
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/lcd/extui/mks_ui/draw_ui.cpp

+ 1
- 1
Marlin/src/lcd/extui/mks_ui/draw_ui.cpp View File

@@ -374,7 +374,7 @@ void tft_style_init() {
374 374
   style_sel_text.body.grad_color  = LV_COLOR_BACKGROUND;
375 375
   style_sel_text.text.color       = LV_COLOR_YELLOW;
376 376
   style_sel_text.text.sel_color   = LV_COLOR_YELLOW;
377
-  style_sel_text.text.font        = &gb2312_puhui32;
377
+  style_sel_text.text.font        = TERN(HAS_SPI_FLASH_FONT, &gb2312_puhui32, LV_FONT_DEFAULT);
378 378
   style_sel_text.line.width       = 0;
379 379
   style_sel_text.text.letter_space  = 0;
380 380
   style_sel_text.text.line_space    = -5;

Loading…
Cancel
Save