🎨 Apply F() to UTF-8/MMU2 string put
This commit is contained in:
@@ -48,7 +48,7 @@ void MarlinGame::draw_game_over() {
|
||||
u8g.setColorIndex(0);
|
||||
u8g.drawBox(lx - 1, ly - gohigh - 1, gowide + 2, gohigh + 2);
|
||||
u8g.setColorIndex(1);
|
||||
if (ui.get_blink()) lcd_put_u8str_P(lx, ly, PSTR("GAME OVER"));
|
||||
if (ui.get_blink()) lcd_put_u8str(lx, ly, F("GAME OVER"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -179,7 +179,7 @@ static void _lcd_level_bed_corners_get_next_position() {
|
||||
// Display # of good points found vs total needed
|
||||
if (PAGE_CONTAINS(y - (MENU_FONT_HEIGHT), y)) {
|
||||
SETCURSOR(TERN(TFT_COLOR_UI, 2, 0), cy);
|
||||
lcd_put_u8str_P(GET_TEXT(MSG_BED_TRAMMING_GOOD_POINTS));
|
||||
lcd_put_u8str_(GET_TEXT_F(MSG_BED_TRAMMING_GOOD_POINTS));
|
||||
IF_ENABLED(TFT_COLOR_UI, lcd_moveto(12, cy));
|
||||
lcd_put_u8str(GOOD_POINTS_TO_STR(good_points));
|
||||
lcd_put_wchar('/');
|
||||
@@ -192,7 +192,7 @@ static void _lcd_level_bed_corners_get_next_position() {
|
||||
// Display the Last Z value
|
||||
if (PAGE_CONTAINS(y - (MENU_FONT_HEIGHT), y)) {
|
||||
SETCURSOR(TERN(TFT_COLOR_UI, 2, 0), cy);
|
||||
lcd_put_u8str_P(GET_TEXT(MSG_BED_TRAMMING_LAST_Z));
|
||||
lcd_put_u8str(GET_TEXT_F(MSG_BED_TRAMMING_LAST_Z));
|
||||
IF_ENABLED(TFT_COLOR_UI, lcd_moveto(12, 2));
|
||||
lcd_put_u8str(LAST_Z_TO_STR(last_z));
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@
|
||||
if (ui.should_draw()) {
|
||||
char tmp[16];
|
||||
SETCURSOR(1, (LCD_HEIGHT - 1) / 2);
|
||||
lcd_put_u8str_P(isend ? GET_TEXT(MSG_END_Z) : GET_TEXT(MSG_START_Z));
|
||||
lcd_put_u8str(isend ? GET_TEXT_F(MSG_END_Z) : GET_TEXT_F(MSG_START_Z));
|
||||
sprintf_P(tmp, PSTR("%4d.%d mm"), int(zvar), int(zvar * 10) % 10);
|
||||
SETCURSOR_RJ(9, (LCD_HEIGHT - 1) / 2);
|
||||
lcd_put_u8str(tmp);
|
||||
@@ -114,7 +114,7 @@ static uint8_t v_index;
|
||||
void _lcd_draw_mix(const uint8_t y) {
|
||||
char tmp[20]; // "100%_100%"
|
||||
sprintf_P(tmp, PSTR("%3d%% %3d%%"), int(mixer.mix[0]), int(mixer.mix[1]));
|
||||
SETCURSOR(2, y); lcd_put_u8str_P(GET_TEXT(MSG_MIX));
|
||||
SETCURSOR(2, y); lcd_put_u8str(GET_TEXT_F(MSG_MIX));
|
||||
SETCURSOR_RJ(10, y); lcd_put_u8str(tmp);
|
||||
}
|
||||
#endif
|
||||
|
@@ -73,12 +73,12 @@
|
||||
TERN_(HAS_MARLINUI_U8GLIB, ui.set_font(FONT_MENU));
|
||||
#if ENABLED(TFT_COLOR_UI)
|
||||
lcd_moveto(4, 3);
|
||||
lcd_put_u8str_P(GET_TEXT(MSG_BABYSTEP_TOTAL));
|
||||
lcd_put_u8str(GET_TEXT_F(MSG_BABYSTEP_TOTAL));
|
||||
lcd_put_wchar(':');
|
||||
lcd_moveto(10, 3);
|
||||
#else
|
||||
lcd_moveto(0, TERN(HAS_MARLINUI_U8GLIB, LCD_PIXEL_HEIGHT - MENU_FONT_DESCENT, LCD_HEIGHT - 1));
|
||||
lcd_put_u8str_P(GET_TEXT(MSG_BABYSTEP_TOTAL));
|
||||
lcd_put_u8str(GET_TEXT_F(MSG_BABYSTEP_TOTAL));
|
||||
lcd_put_wchar(':');
|
||||
#endif
|
||||
lcd_put_u8str(BABYSTEP_TO_STR(mps * babystep.axis_total[BS_TOTAL_IND(axis)]));
|
||||
|
Reference in New Issue
Block a user