Small / Large Boot Screen option for TFT_COLOR_UI (#20578)
This commit is contained in:
@ -92,10 +92,20 @@ void MarlinUI::clear_lcd() {
|
||||
tft.queue.reset();
|
||||
|
||||
tft.canvas(0, 0, TFT_WIDTH, TFT_HEIGHT);
|
||||
tft.add_image(0, 0, imgBootScreen); // MarlinLogo320x240x16
|
||||
|
||||
#if ENABLED(BOOT_MARLIN_LOGO_SMALL)
|
||||
#define BOOT_LOGO_W 195 // MarlinLogo195x59x16
|
||||
#define BOOT_LOGO_H 59
|
||||
#define SITE_URL_Y (TFT_HEIGHT - 46)
|
||||
tft.set_background(COLOR_BACKGROUND);
|
||||
#else
|
||||
#define BOOT_LOGO_W 320 // MarlinLogo320x240x16
|
||||
#define BOOT_LOGO_H 240
|
||||
#define SITE_URL_Y (TFT_HEIGHT - 52)
|
||||
#endif
|
||||
tft.add_image((TFT_WIDTH - BOOT_LOGO_W) / 2, (TFT_HEIGHT - BOOT_LOGO_H) / 2, imgBootScreen);
|
||||
#ifdef WEBSITE_URL
|
||||
tft.add_text(4, 188, COLOR_WEBSITE_URL, WEBSITE_URL);
|
||||
tft_string.set(WEBSITE_URL);
|
||||
tft.add_text(tft_string.center(TFT_WIDTH), SITE_URL_Y, COLOR_WEBSITE_URL, tft_string);
|
||||
#endif
|
||||
|
||||
tft.queue.sync();
|
||||
|
Reference in New Issue
Block a user