mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-22 18:25:18 +00:00
fix for TFT_CLASSIC_UI
This commit is contained in:
parent
7f86ebea6b
commit
b6a2a3eead
@ -517,11 +517,6 @@ U8G_PB_DEV(u8g_dev_tft_320x240_upscale_from_128x64, WIDTH, HEIGHT, PAGE_HEIGHT,
|
||||
|
||||
FSTR_P str = nullptr;
|
||||
if (stage < CALIBRATION_SUCCESS) {
|
||||
tft_string.set(GET_TEXT(MSG_TOUCH_CALIBRATION));
|
||||
tft.canvas(0, 0, TFT_WIDTH, tft_string.font_height());
|
||||
tft.set_background(COLOR_BACKGROUND);
|
||||
tft.add_text(tft_string.center(TFT_WIDTH), 0, COLOR_MENU_TEXT, tft_string);
|
||||
|
||||
// handle current state
|
||||
switch (stage) {
|
||||
case CALIBRATION_TOP_LEFT: str = GET_TEXT_F(MSG_TOP_LEFT); break;
|
||||
|
@ -456,6 +456,11 @@ void MarlinUI::clear_for_drawing() { clear_lcd(); }
|
||||
touch.clear();
|
||||
|
||||
if (stage < CALIBRATION_SUCCESS) {
|
||||
tft_string.set(GET_TEXT(MSG_TOUCH_CALIBRATION));
|
||||
tft.canvas(0, 0, TFT_WIDTH, tft_string.font_height());
|
||||
tft.set_background(COLOR_BACKGROUND);
|
||||
tft.add_text(tft_string.center(TFT_WIDTH), 0, COLOR_MENU_TEXT, tft_string);
|
||||
|
||||
switch (stage) {
|
||||
case CALIBRATION_TOP_LEFT: tft_string.set(GET_TEXT(MSG_TOP_LEFT)); break;
|
||||
case CALIBRATION_TOP_RIGHT: tft_string.set(GET_TEXT(MSG_TOP_RIGHT)); break;
|
||||
|
Loading…
Reference in New Issue
Block a user